PHP 클래스 Xpressengine\Permission\Permission

저자: XE Team (developers) ([email protected])
파일 보기 프로젝트 열기: xpressengine/xpressengine 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$grant Grant Grant object
$parent Permission Parent Registered instance

공개 메소드들

메소드 설명
__construct ( array $attributes = [] ) constructor
addParent ( Permission $parent ) : void Add parent to ancestor
getAttributes ( ) : array returns current attributes
getDepth ( ) : integer Returns depth
getIterator ( ) : ArrayIterato\ArrayIterator Get an iterator for the items.
getParent ( ) : Permission Returns parent registered
offsetExists ( mixed $offset ) : boolean Determine if an item exists at an offset.
offsetGet ( mixed $offset ) : mixed Get an item at a given offset.
offsetSet ( mixed $offset, mixed $value ) : void Set the item at a given offset.
offsetUnset ( string $offset ) : void Unset the item at a given offset.
pure ( string $key ) : mixed | null Get value of without inherit
setGrant ( Grant $grant ) : void Set the grant

보호된 메소드들

메소드 설명
isParent ( Permission $parent ) : boolean Check parent of current at a given.

메소드 상세

__construct() 공개 메소드

constructor
public __construct ( array $attributes = [] )
$attributes array attributes array

addParent() 공개 메소드

Add parent to ancestor
public addParent ( Permission $parent ) : void
$parent Permission parent instance
리턴 void

getAttributes() 공개 메소드

returns current attributes
public getAttributes ( ) : array
리턴 array

getDepth() 공개 메소드

Returns depth
public getDepth ( ) : integer
리턴 integer

getIterator() 공개 메소드

Get an iterator for the items.
public getIterator ( ) : ArrayIterato\ArrayIterator
리턴 ArrayIterato\ArrayIterator

getParent() 공개 메소드

Returns parent registered
public getParent ( ) : Permission
리턴 Permission

isParent() 보호된 메소드

Check parent of current at a given.
protected isParent ( Permission $parent ) : boolean
$parent Permission parent instance
리턴 boolean

offsetExists() 공개 메소드

Determine if an item exists at an offset.
public offsetExists ( mixed $offset ) : boolean
$offset mixed array offset
리턴 boolean

offsetGet() 공개 메소드

Get an item at a given offset.
public offsetGet ( mixed $offset ) : mixed
$offset mixed array offset
리턴 mixed

offsetSet() 공개 메소드

Set the item at a given offset.
public offsetSet ( mixed $offset, mixed $value ) : void
$offset mixed array offset
$value mixed array value
리턴 void

offsetUnset() 공개 메소드

Unset the item at a given offset.
public offsetUnset ( string $offset ) : void
$offset string array offset
리턴 void

pure() 공개 메소드

Get value of without inherit
public pure ( string $key ) : mixed | null
$key string grant action name
리턴 mixed | null

setGrant() 공개 메소드

Set the grant
public setGrant ( Grant $grant ) : void
$grant Grant grant object
리턴 void

프로퍼티 상세

$grant 보호되어 있는 프로퍼티

Grant object
protected Grant,Xpressengine\Permission $grant
리턴 Grant

$parent 보호되어 있는 프로퍼티

Parent Registered instance
protected Permission,Xpressengine\Permission $parent
리턴 Permission