PHP Class ZfcRbac\Collector\RbacCollector

Author: Michaël Gallego ([email protected])
Inheritance: implements ZendDeveloperTools\Collector\CollectorInterface, implements Serializabl\Serializable
Mostra file Open project: zf-commons/zfc-rbac Class Usage Examples

Protected Properties

Property Type Description
$collectedGuards array
$collectedOptions array
$collectedPermissions array
$collectedRoles array

Public Methods

Method Description
collect ( MvcEvent $mvcEvent ) Collects data.
getCollection ( ) : array | string[]
getName ( ) : string Collector Name.
getPriority ( ) : integer Collector Priority.
serialize ( ) {@inheritDoc}
unserialize ( $serialized ) {@inheritDoc}

Private Methods

Method Description
collectGuards ( array $guards ) : void Collect guards
collectIdentityRolesAndPermissions ( RoleService $roleService ) : void Collect roles and permissions
collectOptions ( ModuleOptions $moduleOptions ) : void Collect options
collectPermissions ( Rbac\Role\RoleInterface $role ) : void Collect permissions for the given role

Method Details

collect() public method

Collects data.
public collect ( MvcEvent $mvcEvent )
$mvcEvent Zend\Mvc\MvcEvent

getCollection() public method

public getCollection ( ) : array | string[]
return array | string[]

getName() public method

Collector Name.
public getName ( ) : string
return string

getPriority() public method

Collector Priority.
public getPriority ( ) : integer
return integer

serialize() public method

{@inheritDoc}
public serialize ( )

unserialize() public method

{@inheritDoc}
public unserialize ( $serialized )

Property Details

$collectedGuards protected_oe property

protected array $collectedGuards
return array

$collectedOptions protected_oe property

protected array $collectedOptions
return array

$collectedPermissions protected_oe property

protected array $collectedPermissions
return array

$collectedRoles protected_oe property

protected array $collectedRoles
return array