메소드 |
설명 |
|
addPermission ( Horde_Perms_Permission $perm ) |
Adds a permission to the permissions system. The permission must first
be created with newPermission(), and have any initial users added to
it, before this function is called. |
|
exists ( string $permission ) : boolean |
Checks if a permission exists in the system. |
|
getParents ( string $child ) : array |
Returns a list of parent permissions. |
|
getPermission ( string $name ) : Horde_Perms_Permission |
Returns an object corresponding to the named permission, with the users
and other data retrieved appropriately. |
|
getPermissionById ( integer $cid ) : Horde_Perms_Permission |
Returns an object corresponding to the given unique ID, with the users
and other data retrieved appropriately. |
|
getPermissionId ( Horde_Perms_Permission $permission ) : integer |
Returns the unique identifier of this permission. |
|
getTree ( ) : array |
Returns all permissions of the system in a tree format. |
|
newPermission ( string $name, string $type = 'matrix', array $params = null ) : Horde_Perms_Permission |
Returns a new permissions object. |
|
removePermission ( Horde_Perms_Permission $perm, boolean $force = false ) |
Removes a permission from the permissions system permanently. |
|