PHP Класс Horde_Dav_Principals, horde

Автор: Jan Schneider ([email protected])
Наследование: extends Sabre\DAVACL\PrincipalBackend\AbstractBackend
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_auth Horde_Auth_Base Authentication backend.
$_identities object Identity factory.

Открытые методы

Метод Описание
__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.

Защищенные методы

Метод Описание
_getUserInfo ( string $user ) : array Returns principal details.

Описание методов

__construct() публичный Метод

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

_getUserInfo() защищенный Метод

Returns principal details.
protected _getUserInfo ( string $user ) : array
$user string A user name.
Результат array A hash with user information.

getGroupMemberSet() публичный Метод

Returns the list of members for a group-principal
public getGroupMemberSet ( string $principal ) : array
$principal string
Результат array

getGroupMembership() публичный Метод

Returns the list of groups a principal is a member of
public getGroupMembership ( string $principal ) : array
$principal string
Результат array

getPrincipalByPath() публичный Метод

Returns a specific principal, specified by it's path.
public getPrincipalByPath ( string $path ) : array
$path string
Результат array

getPrincipalsByPrefix() публичный Метод

Returns a list of principals based on a prefix.
public getPrincipalsByPrefix ( string $prefixPath ) : array
$prefixPath string
Результат array

searchPrincipals() публичный Метод

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
Результат array

setGroupMemberSet() публичный Метод

The principals should be passed as a list of uri's.
public setGroupMemberSet ( string $principal, array $members ) : void
$principal string
$members array
Результат void

updatePrincipal() публичный Метод

Updates one ore more webdav properties on a principal.
public updatePrincipal ( string $path, Sabre\DAV\PropPatch $propPatch ) : void
$path string
$propPatch Sabre\DAV\PropPatch
Результат void

Описание свойств

$_auth защищенное свойство

Authentication backend.
protected Horde_Auth_Base $_auth
Результат Horde_Auth_Base

$_identities защищенное свойство

Identity factory.
protected object $_identities
Результат object