94 if ($this->disableListing)
95 throw new DAV\Exception\MethodNotAllowed(
'Listing members of this collection is disabled');
98 foreach ($this->principalBackend->getPrincipalsByPrefix($this->principalPrefix) as $principalInfo) {
117 $principalInfo = $this->principalBackend->getPrincipalByPath($this->principalPrefix .
'/' .
$name);
118 if (!$principalInfo)
throw new DAV\Exception\NotFound(
'Principal with name ' . $name .
' not found');
148 $result = $this->principalBackend->searchPrincipals($this->principalPrefix, $searchProperties,
$test);
177 return $this->principalBackend->findByUri($uri, $this->principalPrefix);
getName()
Returns the name of this collection.
searchPrincipals(array $searchProperties, $test='allof')
This method is used to search for principals matching a set of properties.
Principal Collection interface.
findByUri($uri)
Finds a principal by its URI.
getChildren()
Return the list of users.
getChild($name)
Returns a child object, by its name.
__construct(PrincipalBackend\BackendInterface $principalBackend, $principalPrefix='principals')
Creates the object.
getChildForPrincipal(array $principalInfo)
This method returns a node for a principal.
static splitPath($path)
Returns the 'dirname' and 'basename' for a path.