|
|
|
|
@ -212,15 +212,13 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Return the number of calendars for a principal
|
|
|
|
|
* Return the number of calendars owned by the given principal.
|
|
|
|
|
*
|
|
|
|
|
* By default this excludes the automatically generated birthday calendar
|
|
|
|
|
* Calendars shared with the given principal are not counted!
|
|
|
|
|
*
|
|
|
|
|
* @param $principalUri
|
|
|
|
|
* @param bool $excludeBirthday
|
|
|
|
|
* @return int
|
|
|
|
|
* By default, this excludes the automatically generated birthday calendar.
|
|
|
|
|
*/
|
|
|
|
|
public function getCalendarsForUserCount($principalUri, $excludeBirthday = true) {
|
|
|
|
|
public function getCalendarsForUserCount(string $principalUri, bool $excludeBirthday = true): int {
|
|
|
|
|
$principalUri = $this->convertPrincipal($principalUri, true);
|
|
|
|
|
$query = $this->db->getQueryBuilder();
|
|
|
|
|
$query->select($query->func()->count('*'))
|
|
|
|
|
|