PHP 클래스 Scalr\Acl\Resource\ResourceObject

Contains all information about existing resource
부터: 30.07.2013
저자: Vitaliy Demidov ([email protected])
파일 보기 프로젝트 열기: scalr/scalr 1 사용 예제들

공개 메소드들

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

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( integer $resourceId, array $definitionItem )
$resourceId integer The ID of the ACL resource
$definitionItem array Array that describes resource

getDescription() 공개 메소드

Gets description of the ACL resource
public getDescription ( ) : string
리턴 string The description of the resource

getGroup() 공개 메소드

Gets associative group which the resource belongs to.
public getGroup ( ) : string
리턴 string Returns associative group which the resource belongs to.

getMode() 공개 메소드

Gets Mode definition
public getMode ( ) : Scalr\Acl\Resource\ModeInterface
리턴 Scalr\Acl\Resource\ModeInterface Returns the Mode definition if it exists

getName() 공개 메소드

Gets ACL resource name
public getName ( ) : string
리턴 string Returns the name of the resource

getPermissions() 공개 메소드

Gets available permissions definition for the resource
public getPermissions ( ) : array
리턴 array Returns permissions array that looks like array(permissionid => description)

getResourceId() 공개 메소드

Gets ID of the resource
public getResourceId ( ) : integer
리턴 integer returns ID of the resource

hasPermission() 공개 메소드

Checks whether this resource has unique permission with specified ID.
public hasPermission ( string $permissionId )
$permissionId string The ID of the permission