PHP Класс Horde_Group_Mock, horde

Автор: Duck ([email protected])
Наследование: extends Horde_Group_Base
Показать файл Открыть проект

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

Свойство Тип Описание
$_groups array List of groups.
$_log array Access log.

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

Метод Описание
clearLog ( ) Resets the current method call log.
getLog ( ) : array Returns the current method call log.

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

Метод Описание
_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.
_log ( ) Logs a method call.
_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.

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

_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.

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

Add the currently called class method to the call log.
protected _log ( )

_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.

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

Resets the current method call log.
public clearLog ( )

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

Returns the current method call log.
public getLog ( ) : array
Результат array The current call log.

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

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

List of groups.
protected array $_groups
Результат array

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

Access log.
protected array $_log
Результат array