ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
AddressBookRoot.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Sabre\CardDAV;
4 
5 use Sabre\DAVACL;
6 
17 
23  protected $principalBackend;
24 
30  protected $carddavBackend;
31 
46  function __construct(DAVACL\PrincipalBackend\BackendInterface $principalBackend, Backend\BackendInterface $carddavBackend, $principalPrefix = 'principals') {
47 
48  $this->carddavBackend = $carddavBackend;
49  parent::__construct($principalBackend, $principalPrefix);
50 
51  }
52 
58  function getName() {
59 
61 
62  }
63 
74  function getChildForPrincipal(array $principal) {
75 
76  return new AddressBookHome($this->carddavBackend, $principal['uri']);
77 
78  }
79 
80 }
getChildForPrincipal(array $principal)
This method returns a node for a principal.
AddressBook Home class.
__construct(DAVACL\PrincipalBackend\BackendInterface $principalBackend, Backend\BackendInterface $carddavBackend, $principalPrefix='principals')
Constructor.
const ADDRESSBOOK_ROOT
Url to the addressbooks.
Definition: Plugin.php:28
getName()
Returns the name of the node.
AddressBook rootnode.