diff options
author | Richard Steinmetz <richard@steinmetz.cloud> | 2025-06-04 15:05:38 +0200 |
---|---|---|
committer | Richard Steinmetz <richard@steinmetz.cloud> | 2025-06-06 12:32:28 +0200 |
commit | 36f9c55ddc90812537c35e784779a8b65ca5c9e2 (patch) | |
tree | 4683c4dc5b2db9fee5e7125c73de2eee1ce3b1bb | |
parent | 66bc0f68a0574fac6cda9b3aa19cba5c4e4f7984 (diff) | |
download | nextcloud-server-backport/53323/stable30.tar.gz nextcloud-server-backport/53323/stable30.zip |
docs(caldav): improve documentation of CalDavBackend::getCalendarsForUserCountbackport/53323/stable30
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
-rw-r--r-- | apps/dav/lib/CalDAV/CalDavBackend.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php index 3ab47b26582..9dc53b970e0 100644 --- a/apps/dav/lib/CalDAV/CalDavBackend.php +++ b/apps/dav/lib/CalDAV/CalDavBackend.php @@ -211,15 +211,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('*')) |