ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\CardDAV\AddressBookRoot Class Reference

AddressBook rootnode. More...

+ Inheritance diagram for Sabre\CardDAV\AddressBookRoot:
+ Collaboration diagram for Sabre\CardDAV\AddressBookRoot:

Public Member Functions

 __construct (DAVACL\PrincipalBackend\BackendInterface $principalBackend, Backend\BackendInterface $carddavBackend, $principalPrefix='principals')
 Constructor. More...
 
 getName ()
 Returns the name of the node. More...
 
 getChildForPrincipal (array $principal)
 This method returns a node for a principal. More...
 
- Public Member Functions inherited from Sabre\DAVACL\AbstractPrincipalCollection
 __construct (PrincipalBackend\BackendInterface $principalBackend, $principalPrefix='principals')
 Creates the object. More...
 
 getChildForPrincipal (array $principalInfo)
 This method returns a node for a principal. More...
 
 getName ()
 Returns the name of this collection. More...
 
 getChildren ()
 Return the list of users. More...
 
 getChild ($name)
 Returns a child object, by its name. More...
 
 searchPrincipals (array $searchProperties, $test='allof')
 This method is used to search for principals matching a set of properties. More...
 
 findByUri ($uri)
 Finds a principal by its URI. More...
 
- Public Member Functions inherited from Sabre\DAV\Collection
 getChild ($name)
 Returns a child object, by its name. More...
 
 childExists ($name)
 Checks is a child-node exists. More...
 
 createFile ($name, $data=null)
 Creates a new file in the directory. More...
 
 createDirectory ($name)
 Creates a new subdirectory. More...
 
- Public Member Functions inherited from Sabre\DAV\Node
 getLastModified ()
 Returns the last modification time as a unix timestamp. More...
 
 delete ()
 Deletes the current node. More...
 
 setName ($name)
 Renames the node. More...
 

Protected Attributes

 $principalBackend
 
 $carddavBackend
 
- Protected Attributes inherited from Sabre\DAVACL\AbstractPrincipalCollection
 $principalBackend
 
 $principalPrefix
 

Additional Inherited Members

- Data Fields inherited from Sabre\DAVACL\AbstractPrincipalCollection
 $disableListing = false
 

Detailed Description

AddressBook rootnode.

This object lists a collection of users, which can contain addressbooks.

Author
Evert Pot (http://evertpot.com/) http://sabre.io/license/ Modified BSD License

Definition at line 16 of file AddressBookRoot.php.

Constructor & Destructor Documentation

◆ __construct()

Sabre\CardDAV\AddressBookRoot::__construct ( DAVACL\PrincipalBackend\BackendInterface  $principalBackend,
Backend\BackendInterface  $carddavBackend,
  $principalPrefix = 'principals' 
)

Constructor.

This constructor needs both a principal and a carddav backend.

By default this class will show a list of addressbook collections for principals in the 'principals' collection. If your main principals are actually located in a different path, use the $principalPrefix argument to override this.

Parameters
DAVACL\PrincipalBackend\BackendInterface$principalBackend
Backend\BackendInterface$carddavBackend
string$principalPrefix

Definition at line 46 of file AddressBookRoot.php.

References Sabre\CardDAV\AddressBookRoot\$carddavBackend, and Sabre\DAVACL\AbstractPrincipalCollection\$principalPrefix.

Member Function Documentation

◆ getChildForPrincipal()

Sabre\CardDAV\AddressBookRoot::getChildForPrincipal ( array  $principal)

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.

Parameters
array$principal
Returns

Definition at line 74 of file AddressBookRoot.php.

74  {
75 
76  return new AddressBookHome($this->carddavBackend, $principal['uri']);
77 
78  }

◆ getName()

Sabre\CardDAV\AddressBookRoot::getName ( )

Returns the name of the node.

Returns
string

Implements Sabre\DAV\INode.

Definition at line 58 of file AddressBookRoot.php.

References Sabre\CardDAV\Plugin\ADDRESSBOOK_ROOT.

58  {
59 
61 
62  }
const ADDRESSBOOK_ROOT
Url to the addressbooks.
Definition: Plugin.php:28

Field Documentation

◆ $carddavBackend

Sabre\CardDAV\AddressBookRoot::$carddavBackend
protected

Definition at line 30 of file AddressBookRoot.php.

Referenced by Sabre\CardDAV\AddressBookRoot\__construct().

◆ $principalBackend

Sabre\CardDAV\AddressBookRoot::$principalBackend
protected

Definition at line 23 of file AddressBookRoot.php.


The documentation for this class was generated from the following file: