PHP Class ZfcRbac\Collector\RbacCollector

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

Protected Properties

Свойство Type Description
$collectedGuards array
$collectedOptions array
$collectedPermissions array
$collectedRoles array

Méthodes publiques

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

Private Methods

Méthode 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 méthode

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

getCollection() public méthode

public getCollection ( ) : array | string[]
Résultat array | string[]

getName() public méthode

Collector Name.
public getName ( ) : string
Résultat string

getPriority() public méthode

Collector Priority.
public getPriority ( ) : integer
Résultat integer

serialize() public méthode

{@inheritDoc}
public serialize ( )

unserialize() public méthode

{@inheritDoc}
public unserialize ( $serialized )

Property Details

$collectedGuards protected_oe property

protected array $collectedGuards
Résultat array

$collectedOptions protected_oe property

protected array $collectedOptions
Résultat array

$collectedPermissions protected_oe property

protected array $collectedPermissions
Résultat array

$collectedRoles protected_oe property

protected array $collectedRoles
Résultat array