Method |
Description |
|
__construct ( array $aro = [], array $map = [], array $aliases = [] ) |
Constructor |
|
addAlias ( array $alias ) : void |
adds one or more aliases to the internal map. Overwrites existing entries. |
|
addRole ( array $aro ) : void |
adds a new ARO to the tree |
|
build ( array $aros ) : void |
build an ARO tree structure for internal processing |
|
resolve ( string | array $aro ) : string |
resolve an ARO identifier to an internal ARO string using
the internal mapping information. |
|
roles ( string | array $aro ) : array |
From the perspective of the given ARO, walk down the tree and
collect all inherited AROs levelwise such that AROs from different
branches with equal distance to the requested ARO will be collected at the same
index. The resulting array will contain a prioritized list of (list of) roles ordered from
the most distant AROs to the requested one itself. |
|