The getAuthorizationEngines(
[engine
$engine = null])
Returns the authorization engines configured for the current PoA, or the one specified.
Tags:
return:
authorization engine(s) requested if it was previously configured. If none was specified, all configured engines will be returned. An empty array will be returned if no authorization engines were found.
access:
public
Parameters:
engine
$engine
The name of the authorization engine to retrieve. If more than one engine should be returned then this must be an array.
An getAuthorizationLevels(
user
$user, attributes
$attributes)
Get the authorization levels that match for the user specified, according to the configuration.
An array with the names of the levels matching the user is returned. An empty array is returned if no match is found.
Tags:
return:
array with the names of the levels matching the user, if any. An empty array will be returned if no match. Exception will be raised if no levels are defined for this PoA.