PHP 클래스 Horde_Group_Ldap, horde

저자: Ben Chavet ([email protected])
저자: Jan Schneider ([email protected])
상속: extends Horde_Group_Base
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_filter Horde_Ldap_Filter LDAP filter for searching groups.
$_ldap Horde_Ldap Handle for the current LDAP connection.
$_params array Any additional parameters for the driver.

공개 메소드들

메소드 설명
__construct ( $params ) Constructor.
readOnly ( ) : boolean Returns whether the group backend is read-only.
renameSupported ( ) : boolean Returns whether groups can be renamed.

보호된 메소드들

메소드 설명
_addUser ( mixed $gid, string $user ) Add a user to a group.
_create ( string $name, string $email = null ) : mixed Creates a new group.
_exists ( mixed $gid ) : boolean Checks if a group exists.
_getData ( mixed $gid ) : array Returns all available attributes of a group.
_getName ( mixed $gid ) : string Returns a group name.
_listAll ( ) : array Returns a list of all groups a user may see, with IDs as keys and names as values.
_listGroups ( string $user ) : array Returns a list of groups a user belongs to.
_listUsers ( mixed $gid ) : array Returns a list of users in a group.
_nextGid ( ) : integer Searches existing groups for the highest gidnumber, and returns one higher.
_rebind ( boolean $write ) Rebinds to the LDAP server.
_remove ( mixed $gid ) Removes a group.
_removeUser ( mixed $gid, string $user ) Removes a user from a group.
_rename ( mixed $gid, string $name ) Renames a group.
_search ( string $name ) : array Searches for group names.
_setData ( mixed $gid, array | string $attribute, string $value = null ) Sets one or more attributes of a group.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( $params )

_addUser() 보호된 메소드

Add a user to a group.
protected _addUser ( mixed $gid, string $user )
$gid mixed A group ID.
$user string A user name.

_create() 보호된 메소드

Creates a new group.
protected _create ( string $name, string $email = null ) : mixed
$name string A group name.
$email string The group's email address.
리턴 mixed The ID of the created group.

_exists() 보호된 메소드

Checks if a group exists.
protected _exists ( mixed $gid ) : boolean
$gid mixed A group ID.
리턴 boolean True if the group exists.

_getData() 보호된 메소드

Returns all available attributes of a group.
protected _getData ( mixed $gid ) : array
$gid mixed A group ID.
리턴 array The group's date.

_getName() 보호된 메소드

Returns a group name.
protected _getName ( mixed $gid ) : string
$gid mixed A group ID.
리턴 string The group's name.

_listAll() 보호된 메소드

Returns a list of all groups a user may see, with IDs as keys and names as values.
protected _listAll ( ) : array
리턴 array All existing groups.

_listGroups() 보호된 메소드

Returns a list of groups a user belongs to.
protected _listGroups ( string $user ) : array
$user string A user name.
리턴 array A list of groups, with IDs as keys and names as values.

_listUsers() 보호된 메소드

Returns a list of users in a group.
protected _listUsers ( mixed $gid ) : array
$gid mixed A group ID.
리턴 array List of group users.

_nextGid() 보호된 메소드

Searches existing groups for the highest gidnumber, and returns one higher.
protected _nextGid ( ) : integer
리턴 integer The next group ID.

_rebind() 보호된 메소드

Rebinds to the LDAP server.
protected _rebind ( boolean $write )
$write boolean Whether to rebind for write access. Use false after finishing write actions.

_remove() 보호된 메소드

Removes a group.
protected _remove ( mixed $gid )
$gid mixed A group ID.

_removeUser() 보호된 메소드

Removes a user from a group.
protected _removeUser ( mixed $gid, string $user )
$gid mixed A group ID.
$user string A user name.

_rename() 보호된 메소드

Renames a group.
protected _rename ( mixed $gid, string $name )
$gid mixed A group ID.
$name string The new name.

_setData() 보호된 메소드

Sets one or more attributes of a group.
protected _setData ( mixed $gid, array | string $attribute, string $value = null )
$gid mixed A group ID.
$attribute array | string An attribute name or a hash of attributes.
$value string An attribute value if $attribute is a string.

readOnly() 공개 메소드

Returns whether the group backend is read-only.
public readOnly ( ) : boolean
리턴 boolean

renameSupported() 공개 메소드

Returns whether groups can be renamed.
public renameSupported ( ) : boolean
리턴 boolean

프로퍼티 상세

$_filter 보호되어 있는 프로퍼티

LDAP filter for searching groups.
protected Horde_Ldap_Filter $_filter
리턴 Horde_Ldap_Filter

$_ldap 보호되어 있는 프로퍼티

Handle for the current LDAP connection.
protected Horde_Ldap $_ldap
리턴 Horde_Ldap

$_params 보호되어 있는 프로퍼티

Any additional parameters for the driver.
protected array $_params
리턴 array