PHP Class Xpressengine\Permission\Permission

Author: XE Team (developers) ([email protected])
Afficher le fichier Open project: xpressengine/xpressengine Class Usage Examples

Protected Properties

Свойство Type Description
$grant Grant Grant object
$parent Permission Parent Registered instance

Méthodes publiques

Méthode Description
__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

Méthodes protégées

Méthode Description
isParent ( Permission $parent ) : boolean Check parent of current at a given.

Method Details

__construct() public méthode

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

addParent() public méthode

Add parent to ancestor
public addParent ( Permission $parent ) : void
$parent Permission parent instance
Résultat void

getAttributes() public méthode

returns current attributes
public getAttributes ( ) : array
Résultat array

getDepth() public méthode

Returns depth
public getDepth ( ) : integer
Résultat integer

getIterator() public méthode

Get an iterator for the items.
public getIterator ( ) : ArrayIterato\ArrayIterator
Résultat ArrayIterato\ArrayIterator

getParent() public méthode

Returns parent registered
public getParent ( ) : Permission
Résultat Permission

isParent() protected méthode

Check parent of current at a given.
protected isParent ( Permission $parent ) : boolean
$parent Permission parent instance
Résultat boolean

offsetExists() public méthode

Determine if an item exists at an offset.
public offsetExists ( mixed $offset ) : boolean
$offset mixed array offset
Résultat boolean

offsetGet() public méthode

Get an item at a given offset.
public offsetGet ( mixed $offset ) : mixed
$offset mixed array offset
Résultat mixed

offsetSet() public méthode

Set the item at a given offset.
public offsetSet ( mixed $offset, mixed $value ) : void
$offset mixed array offset
$value mixed array value
Résultat void

offsetUnset() public méthode

Unset the item at a given offset.
public offsetUnset ( string $offset ) : void
$offset string array offset
Résultat void

pure() public méthode

Get value of without inherit
public pure ( string $key ) : mixed | null
$key string grant action name
Résultat mixed | null

setGrant() public méthode

Set the grant
public setGrant ( Grant $grant ) : void
$grant Grant grant object
Résultat void

Property Details

$grant protected_oe property

Grant object
protected Grant,Xpressengine\Permission $grant
Résultat Grant

$parent protected_oe property

Parent Registered instance
protected Permission,Xpressengine\Permission $parent
Résultat Permission