Property | Type | Description | |
---|---|---|---|
$_cache | Horde_Cache | Cache object. |
Method | Description | |
---|---|---|
__construct ( $params = [] ) | Constructor. | |
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. | |
getCache ( ) : Horde_Cache | Returns the cache object. | |
getData ( mixed $gid ) : array | Returns all available attributes of a group. | |
getName ( mixed $gid ) : string | Returns a group name. | |
listAll ( string $member = null ) : 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. | |
readOnly ( ) : boolean | Returns whether the group backend is read-only. | |
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. | |
renameSupported ( ) : boolean | Returns whether groups can be renamed. | |
search ( string $name ) : array | Searches for group names. | |
setCache ( Horde_Cache $cache ) | Sets a cache object. | |
setData ( mixed $gid, array | string $attribute, string $value = null ) | Sets one or more attributes of a group. |
Method | Description | |
---|---|---|
_addUser ( mixed $gid, string $user ) | Add a user to a group. | |
_checkExistsCache ( $gid ) | ||
_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. | |
_getListCache ( string $user = null ) : array | Returns the cached group list. | |
_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. | |
_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. | |
_setListCache ( array $list, string $user = null ) | Sets the cached group list. | |
_sig ( string $key ) : string | Returns a full cache key. |
protected _getListCache ( string $user = null ) : array | ||
$user | string | A user name. |
return | array | The group list or null if not cached. |
abstract protected _listGroups ( string $user ) : array | ||
$user | string | A user name. |
return | array | A list of groups, with IDs as keys and names as values. |
abstract protected _listUsers ( mixed $gid ) : array | ||
$gid | mixed | A group ID. |
return | array | List of group users. |
protected _removeUser ( mixed $gid, string $user ) | ||
$gid | mixed | A group ID. |
$user | string | A user name. |
protected _setListCache ( array $list, string $user = null ) | ||
$list | array | A group list. |
$user | string | A user name. |
public getCache ( ) : Horde_Cache | ||
return | Horde_Cache |
public listGroups ( string $user ) : array | ||
$user | string | A user name. |
return | array | A list of groups, with IDs as keys and names as values. |
public removeUser ( mixed $gid, string $user ) | ||
$gid | mixed | A group ID. |
$user | string | A user name. |
public renameSupported ( ) : boolean | ||
return | boolean |
public setCache ( Horde_Cache $cache ) | ||
$cache | Horde_Cache | The cache object. |