carddavBackends = $carddavBackends; parent::__construct($principalBackend, $principalPrefix); } /** * 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_DAVACL_IPrincipal */ public function getChildForPrincipal(array $principal) { return new Sabre_CardDAV_UserAddressBooksMultiBackend($this->carddavBackends, $principal['uri']); } }