From bf1ca75710a99a96ba39790e9db79bb0a0f950b4 Mon Sep 17 00:00:00 2001 From: Jakob Sack Date: Wed, 20 Jul 2011 15:53:34 +0200 Subject: Integration of SabreDAV --- 3dparty/Sabre/CardDAV/AddressBookRoot.php | 72 +++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 3dparty/Sabre/CardDAV/AddressBookRoot.php (limited to '3dparty/Sabre/CardDAV/AddressBookRoot.php') diff --git a/3dparty/Sabre/CardDAV/AddressBookRoot.php b/3dparty/Sabre/CardDAV/AddressBookRoot.php new file mode 100644 index 00000000000..88c8ed2e061 --- /dev/null +++ b/3dparty/Sabre/CardDAV/AddressBookRoot.php @@ -0,0 +1,72 @@ +carddavBackend = $carddavBackend; + parent::__construct($principalBackend); + + } + + /** + * Returns the name of the node + * + * @return string + */ + public function getName() { + + return Sabre_CardDAV_Plugin::ADDRESSBOOK_ROOT; + + } + + /** + * This method returns a node for a principal. + * + * The passed array contains principal information, and is guaranteed to + * at least contain a uri item. Other properties may or may not be + * supplied by the authentication backend. + * + * @param array $principal + * @return Sabre_DAV_INode + */ + public function getChildForPrincipal(array $principal) { + + return new Sabre_CardDAV_UserAddressBooks($this->carddavBackend, $principal['uri']); + + } + +} -- cgit v1.2.3