Méthode | Description | |
---|---|---|
__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 | ||
Résultat | string | The description of the resource |
public getMode ( ) : Scalr\Acl\Resource\ModeInterface | ||
Résultat | Scalr\Acl\Resource\ModeInterface | Returns the Mode definition if it exists |
public getPermissions ( ) : array | ||
Résultat | array | Returns permissions array that looks like array(permissionid => description) |
public getResourceId ( ) : integer | ||
Résultat | integer | returns ID of the resource |
public hasPermission ( string $permissionId ) | ||
$permissionId | string | The ID of the permission |