[Pkg-owncloud-commits] [php-sabredav] 43/66: Support for supscription in the browser

David Prévot taffit at moszumanska.debian.org
Sat Jan 18 20:08:21 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository php-sabredav.

commit 4db531d5ea6263334d8016e1f61231d0321953f3
Author: Evert Pot <evert at rooftopsolutions.nl>
Date:   Mon Jan 6 19:19:02 2014 +0100

    Support for supscription in the browser
    
    Also extended the calendarserver example to load the subscription plugin
    by default.
---
 examples/calendarserver.php      | 7 +++++++
 lib/Sabre/DAV/Browser/Plugin.php | 3 +++
 2 files changed, 10 insertions(+)

diff --git a/examples/calendarserver.php b/examples/calendarserver.php
index 9528053..b54d14c 100644
--- a/examples/calendarserver.php
+++ b/examples/calendarserver.php
@@ -51,9 +51,16 @@ $server->addPlugin($authPlugin);
 $aclPlugin = new Sabre\DAVACL\Plugin();
 $server->addPlugin($aclPlugin);
 
+/* CalDAV support */
 $caldavPlugin = new Sabre\CalDAV\Plugin();
 $server->addPlugin($caldavPlugin);
 
+/* Calendar subscription support */
+$server->addPlugin(
+    new Sabre\CalDAV\Subscription\Plugin()
+);
+
+
 // Support for html frontend
 $browser = new Sabre\DAV\Browser\Plugin();
 $server->addPlugin($browser);
diff --git a/lib/Sabre/DAV/Browser/Plugin.php b/lib/Sabre/DAV/Browser/Plugin.php
index e83aa6c..83f26ed 100644
--- a/lib/Sabre/DAV/Browser/Plugin.php
+++ b/lib/Sabre/DAV/Browser/Plugin.php
@@ -329,6 +329,9 @@ class Plugin extends DAV\ServerPlugin {
                         case '{http://calendarserver.org/ns/}shared-owner' :
                             $type[$k] = 'Shared';
                             break;
+                        case '{http://calendarserver.org/ns/}subscribed' :
+                            $type[$k] = 'Subscription';
+                            break;
                     }
 
                 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git



More information about the Pkg-owncloud-commits mailing list