PHP Class AuthManager

Afficher le fichier Open project: openeyes/openeyes Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( ) AuthManager constructor.
executeBizRule ( string $bizRule, array $params, mixed $data ) : boolean Override of parent to utlise the namespaced rulesets that have been defined.
getAuthAssignments ( mixed $user_id ) : mixed Caching wrapper on the auth assignments for a user.
registerRuleset ( string $namespace, object $ruleset ) Mechanism to store ruleset objects against a "namespace" for use when executing business rules.

Method Details

__construct() public méthode

AuthManager constructor.
public __construct ( )

executeBizRule() public méthode

Override of parent to utlise the namespaced rulesets that have been defined.
public executeBizRule ( string $bizRule, array $params, mixed $data ) : boolean
$bizRule string
$params array
$data mixed
Résultat boolean

getAuthAssignments() public méthode

Caching wrapper on the auth assignments for a user.
public getAuthAssignments ( mixed $user_id ) : mixed
$user_id mixed
Résultat mixed

registerRuleset() public méthode

Mechanism to store ruleset objects against a "namespace" for use when executing business rules.
public registerRuleset ( string $namespace, object $ruleset )
$namespace string Name of module
$ruleset object Object on which the rule methods are defined