PHP Class AuthManager

Show file Open project: openeyes/openeyes Class Usage Examples

Public Methods

Method 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 method

AuthManager constructor.
public __construct ( )

executeBizRule() public method

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
return boolean

getAuthAssignments() public method

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

registerRuleset() public method

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