carddavBackend = $carddavBackend; parent::__construct($principalBackend, $principalPrefix); } /** * Returns the name of the node * * @return string */ public function getName() { return 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 \OldSabre\DAV\INode */ public function getChildForPrincipal(array $principal) { return new UserAddressBooks($this->carddavBackend, $principal['uri']); } }