PHP 클래스 Scalr\Acl\Resource\Definition

This class describes all known resources.
부터: 30.07.2013
저자: Vitaliy Demidov ([email protected])
파일 보기 프로젝트 열기: scalr/scalr 1 사용 예제들

공개 메소드들

메소드 설명
get ( integer $resourceId ) : ResourceObject Gets the definition of the provided resource
getAll ( $raw = false ) : ArrayObject Gets all Resources
getByGroup ( string $group ) : ArrayObject Gets the list of the resources of specified associative group.
has ( integer $resourceId ) : boolean Checks if specified resource is defined

메소드 상세

get() 공개 정적인 메소드

Gets the definition of the provided resource
public static get ( integer $resourceId ) : ResourceObject
$resourceId integer The ID of the ACL resource
리턴 ResourceObject Returns the object which describes specified resource or null if it does not exist.

getAll() 공개 정적인 메소드

This method describes all available resources
public static getAll ( $raw = false ) : ArrayObject
리턴 ArrayObject Returns array looks like [ resource_id => [name, description, resourceGroup, [[permission_id => description)][, ModeInterface]] ] Third value of array is optional and determines unique permissions for specified resource which can be allowed or forbidden separately. Forth value of the array is optional Resource Mode.

getByGroup() 공개 정적인 메소드

Gets the list of the resources of specified associative group.
public static getByGroup ( string $group ) : ArrayObject
$group string The group identifier
리턴 ArrayObject Returns the list of the resources of the specified associative group.

has() 공개 정적인 메소드

Checks if specified resource is defined
public static has ( integer $resourceId ) : boolean
$resourceId integer The ID of the ACL resource
리턴 boolean Returns true if defined or false otherwise