\Pop\AclAclRole

Acl role class

Summary

Methods
Properties
Constants
__construct()
setName()
setData()
getName()
getData()
__toString()
__get()
__set()
__isset()
__unset()
offsetGet()
offsetSet()
offsetExists()
offsetUnset()
addChild()
hasChildren()
getChildren()
setParent()
getParent()
hasParent()
No public properties found
No constants found
No protected methods found
$name
$data
$children
$parent
N/A
No private methods found
No private properties found
N/A

Properties

$name

$name : string

Role name

Type

string

$data

$data : array

Role data

Type

array

$children

$children : array

Role children

Type

array

Methods

__construct()

__construct(string  $name, array  $data = array()) 

Constructor

Instantiate the acl role object

Parameters

string $name
array $data

setName()

setName(string  $name) : \Pop\Acl\AbstractAcl

Set the acl role name

Parameters

string $name

Returns

\Pop\Acl\AbstractAcl

setData()

setData(array  $data) : \Pop\Acl\AbstractAcl

Set the acl role data

Parameters

array $data

Returns

\Pop\Acl\AbstractAcl

getName()

getName() : string

Get the acl role name

Returns

string

getData()

getData() : array

Get the acl role data

Returns

array

__toString()

__toString() : string

Return the string value of the name of the acl role

Returns

string

__get()

__get(string  $name) : mixed

Get method to return the value of data[$name].

Parameters

string $name

Returns

mixed

__set()

__set(string  $name, mixed  $value) : mixed

Set method to set the property to the value of data[$name].

Parameters

string $name
mixed $value

Returns

mixed

__isset()

__isset(string  $name) : boolean

Return the isset value of data[$name].

Parameters

string $name

Returns

boolean

__unset()

__unset(string  $name) : void

Unset data[$name].

Parameters

string $name

offsetGet()

offsetGet(mixed  $offset) : mixed

ArrayAccess offsetGet

Parameters

mixed $offset

Returns

mixed

offsetSet()

offsetSet(mixed  $offset, mixed  $value) : mixed

ArrayAccess offsetSet

Parameters

mixed $offset
mixed $value

Throws

\Pop\Acl\Exception

Returns

mixed

offsetExists()

offsetExists(mixed  $offset) : boolean

ArrayAccess offsetExists

Parameters

mixed $offset

Returns

boolean

offsetUnset()

offsetUnset(mixed  $offset) : void

ArrayAccess offsetUnset

Parameters

mixed $offset

Throws

\Pop\Acl\Exception

hasChildren()

hasChildren() : boolean

Has child roles

Returns

boolean

getChildren()

getChildren() : array

Get child roles

Returns

array

getParent()

getParent() : \Pop\Acl\AclRole

Get the role parent

Returns

\Pop\Acl\AclRole

hasParent()

hasParent() : boolean

See if the role has a parent

Returns

boolean