메소드 | 설명 | |
---|---|---|
__construct ( integer $resourceId, array $definitionItem ) | Constructor | |
getDescription ( ) : string | Gets description of the ACL resource | |
getGroup ( ) : string | Gets associative group which the resource belongs to. | |
getMode ( ) : Scalr\Acl\Resource\ModeInterface | Gets Mode definition | |
getName ( ) : string | Gets ACL resource name | |
getPermissions ( ) : array | Gets available permissions definition for the resource | |
getResourceId ( ) : integer | Gets ID of the resource | |
hasPermission ( string $permissionId ) | Checks whether this resource has unique permission with specified ID. |
public __construct ( integer $resourceId, array $definitionItem ) | ||
$resourceId | integer | The ID of the ACL resource |
$definitionItem | array | Array that describes resource |
public getDescription ( ) : string | ||
리턴 | string | The description of the resource |
public getMode ( ) : Scalr\Acl\Resource\ModeInterface | ||
리턴 | Scalr\Acl\Resource\ModeInterface | Returns the Mode definition if it exists |
public getPermissions ( ) : array | ||
리턴 | array | Returns permissions array that looks like array(permissionid => description) |
public getResourceId ( ) : integer | ||
리턴 | integer | returns ID of the resource |
public hasPermission ( string $permissionId ) | ||
$permissionId | string | The ID of the permission |