PHP 클래스 Horde_Perms_Null, horde

Copyright 2011-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
저자: Jan Schneider ([email protected])
상속: extends Horde_Perms_Base
파일 보기 프로젝트 열기: horde/horde

공개 메소드들

메소드 설명
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.

메소드 상세

addPermission() 공개 메소드

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.
public addPermission ( Horde_Perms_Permission $perm )
$perm Horde_Perms_Permission The permissions object.

exists() 공개 메소드

Checks if a permission exists in the system.
public exists ( string $permission ) : boolean
$permission string The permission to check.
리턴 boolean True if the permission exists.

getParents() 공개 메소드

Returns a list of parent permissions.
public getParents ( string $child ) : array
$child string The name of the child to retrieve parents for.
리턴 array A hash with all parents in a tree format.

getPermission() 공개 메소드

Returns an object corresponding to the named permission, with the users and other data retrieved appropriately.
public getPermission ( string $name ) : Horde_Perms_Permission
$name string The name of the permission to retrieve.
리턴 Horde_Perms_Permission A permissions object.

getPermissionById() 공개 메소드

Returns an object corresponding to the given unique ID, with the users and other data retrieved appropriately.
public getPermissionById ( integer $cid ) : Horde_Perms_Permission
$cid integer The unique ID of the permission to retrieve.
리턴 Horde_Perms_Permission A permissions object.

getPermissionId() 공개 메소드

Returns the unique identifier of this permission.
public getPermissionId ( Horde_Perms_Permission $permission ) : integer
$permission Horde_Perms_Permission The permission object to get the ID of.
리턴 integer The unique id.

getTree() 공개 메소드

Returns all permissions of the system in a tree format.
public getTree ( ) : array
리턴 array A hash with all permissions in a tree format.

newPermission() 공개 메소드

Returns a new permissions object.
public newPermission ( string $name, string $type = 'matrix', array $params = null ) : Horde_Perms_Permission
$name string The permission's name.
$type string The permission type.
$params array The permission parameters.
리턴 Horde_Perms_Permission A new permissions object.

removePermission() 공개 메소드

Removes a permission from the permissions system permanently.
public removePermission ( Horde_Perms_Permission $perm, boolean $force = false )
$perm Horde_Perms_Permission The permission to remove.
$force boolean Force to remove every child.