PHP Class Horde_Dav_Principals, horde

Author: Jan Schneider ([email protected])
Inheritance: extends Sabre\DAVACL\PrincipalBackend\AbstractBackend
Afficher le fichier Open project: horde/horde

Protected Properties

Свойство Type Description
$_auth Horde_Auth_Base Authentication backend.
$_identities object Identity factory.

Méthodes publiques

Méthode Description
__construct ( Horde_Auth_Base $auth, object $identities ) Constructor.
getGroupMemberSet ( string $principal ) : array Returns the list of members for a group-principal
getGroupMembership ( string $principal ) : array Returns the list of groups a principal is a member of
getPrincipalByPath ( string $path ) : array Returns a specific principal, specified by it's path.
getPrincipalsByPrefix ( string $prefixPath ) : array Returns a list of principals based on a prefix.
searchPrincipals ( string $prefixPath, array $searchProperties, string $test = 'allof' ) : array This method is used to search for principals matching a set of properties.
setGroupMemberSet ( string $principal, array $members ) : void Updates the list of group members for a group principal.
updatePrincipal ( string $path, Sabre\DAV\PropPatch $propPatch ) : void Updates one ore more webdav properties on a principal.

Méthodes protégées

Méthode Description
_getUserInfo ( string $user ) : array Returns principal details.

Method Details

__construct() public méthode

Constructor.
public __construct ( Horde_Auth_Base $auth, object $identities )
$auth Horde_Auth_Base Authentication backend.
$identities object Identity factory.

_getUserInfo() protected méthode

Returns principal details.
protected _getUserInfo ( string $user ) : array
$user string A user name.
Résultat array A hash with user information.

getGroupMemberSet() public méthode

Returns the list of members for a group-principal
public getGroupMemberSet ( string $principal ) : array
$principal string
Résultat array

getGroupMembership() public méthode

Returns the list of groups a principal is a member of
public getGroupMembership ( string $principal ) : array
$principal string
Résultat array

getPrincipalByPath() public méthode

Returns a specific principal, specified by it's path.
public getPrincipalByPath ( string $path ) : array
$path string
Résultat array

getPrincipalsByPrefix() public méthode

Returns a list of principals based on a prefix.
public getPrincipalsByPrefix ( string $prefixPath ) : array
$prefixPath string
Résultat array

searchPrincipals() public méthode

This method is used to search for principals matching a set of properties.
public searchPrincipals ( string $prefixPath, array $searchProperties, string $test = 'allof' ) : array
$prefixPath string
$searchProperties array
$test string
Résultat array

setGroupMemberSet() public méthode

The principals should be passed as a list of uri's.
public setGroupMemberSet ( string $principal, array $members ) : void
$principal string
$members array
Résultat void

updatePrincipal() public méthode

Updates one ore more webdav properties on a principal.
public updatePrincipal ( string $path, Sabre\DAV\PropPatch $propPatch ) : void
$path string
$propPatch Sabre\DAV\PropPatch
Résultat void

Property Details

$_auth protected_oe property

Authentication backend.
protected Horde_Auth_Base $_auth
Résultat Horde_Auth_Base

$_identities protected_oe property

Identity factory.
protected object $_identities
Résultat object