Property | Type | Description | |
---|---|---|---|
$_adapters | Libraries::locate() compatible path to adapters for this class. | ||
$_classes | Dynamic class dependencies. | ||
$_configurations | Stores configurations for various authentication adapters. |
Method | Description | |
---|---|---|
check ( string $name, mixed $user, mixed $params, array $options = [] ) : Array | Performs an access check against the specified configuration, and returns true if access is permitted and an array with additional details if access is denied. |
Method | Description | |
---|---|---|
_initConfig ( string $name, array $config ) : array | Called when an adapter configuration is first accessed, this method sets the default configuration for session handling. While each configuration can use its own session class and options, this method initializes them to the default dependencies written into the class. |
public static check ( string $name, mixed $user, mixed $params, array $options = [] ) : Array | ||
$name | string | The name of the `Access` configuration/adapter to check against. |
$user | mixed | The user data array that holds all necessary information about the user requesting access. Or `false` (because `Auth::check()` can return `false`). |
$params | mixed | The Lithium `Request` object, or an array with at least 'request', and 'params' |
$options | array | An array of additional options. |
return | Array | An empty array if access is allowed and an array with reasons for denial if denied. |
protected static $_adapters |