79 $owner = $principalInfo[
'uri'];
82 'privilege' =>
'{DAV:}all',
83 'principal' =>
'{DAV:}owner',
88 list(, $principalBaseName) =
Uri\split($owner);
90 $path = $this->storagePath .
'/' . $principalBaseName;
93 mkdir(
$path, 0777,
true);
120 'principal' =>
'{DAV:}authenticated',
121 'privilege' =>
'{DAV:}read',
getName()
Returns the name of the node.
getACL()
Returns a list of ACE's for this node.
This is an ACL-enabled collection.
split($path)
Returns the 'dirname' and 'basename' for a path.
__construct(BackendInterface $principalBackend, $storagePath, $principalPrefix='principals')
Creates the home collection.
getChildForPrincipal(array $principalInfo)
Returns a principals' collection of files.
This collection contains a collection for every principal.
Implement this interface to create your own principal backends.