diff options
author | Georg Ehrke <developer@georgehrke.com> | 2018-03-08 14:44:02 +0100 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2019-01-16 13:58:33 +0100 |
commit | 4a2238c75be9b0ed4be17869878c04cb812d276f (patch) | |
tree | bce70e9c014390bb0d5c93774c32951d972239d8 /apps/dav/lib/CalDAV | |
parent | 943d48cb3e9ab2b97ad6a72c953df59318c2f17e (diff) | |
download | nextcloud-server-4a2238c75be9b0ed4be17869878c04cb812d276f.tar.gz nextcloud-server-4a2238c75be9b0ed4be17869878c04cb812d276f.zip |
add list-calendars command
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Rebase and delete URI suggestion part
Invite to use occ dav:list-calendars instead
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Fix autoload
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Use injection & test everything
And rebase
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Add test for ListCalendars and refactoring
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Fix indentation
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'apps/dav/lib/CalDAV')
-rw-r--r-- | apps/dav/lib/CalDAV/CalDavBackend.php | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php index 1214d11f360..88ee778e82c 100644 --- a/apps/dav/lib/CalDAV/CalDavBackend.php +++ b/apps/dav/lib/CalDAV/CalDavBackend.php @@ -2539,32 +2539,6 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription } /** - * @param string $displayName - * @param string|null $principalUri - * @return array - */ - public function findCalendarsUrisByDisplayName($displayName, $principalUri = null) - { - // Ideally $displayName would be sanitized the same way as stringUtility.js does in calendar - - $query = $this->db->getQueryBuilder(); - $query->select('uri') - ->from('calendars') - ->where($query->expr()->iLike('displayname', - $query->createNamedParameter('%'.$this->db->escapeLikeParameter($displayName).'%'))); - if ($principalUri) { - $query->andWhere($query->expr()->eq('principaluri', $query->createNamedParameter($principalUri))); - } - $result = $query->execute(); - - $calendarUris = []; - while($row = $result->fetch()) { - $calendarUris[] = $row['uri']; - } - return $calendarUris; - } - - /** * read VCalendar data into a VCalendar object * * @param string $objectData |