Definition at line 5 of file User.php.
◆ __clone()
◆ _get()
◆ _set()
◆ authenticated()
authenticated |
( |
|
$auth_sets | ) |
|
Check if a user is authenticated.
- Parameters
-
array | $auth_sets | Possible sets of authentication checks (array of arrays). |
- Returns
- bool Null if the user has to provide some more information. The $authenticationControllerName can be used for this purpose.
Definition at line 34 of file User.php.
◆ authorized()
authorized |
( |
|
$right, |
|
|
|
$level = null |
|
) |
| |
Check if the authenticated user has a certain right.
- Parameters
-
string | $right | Right to check, optionally completed with the minimal level the user must have. |
string | $level | Different level (overrules optional level in the right). |
- Returns
- bool
Definition at line 74 of file User.php.
◆ getAuthenticators()
◆ getFiles()
◆ getId()
◆ getRecord()
◆ id()
Translate a user code (external ID) to a user ID (internal ID).
- Parameters
-
- Returns
- string User ID.
Definition at line 111 of file User.php.
◆ invalidate()
Invalidate the current user.
Definition at line 82 of file User.php.
◆ level()
Get the current user's right level.
- Parameters
-
string | $right | Right to check |
- Returns
- string Level
Definition at line 65 of file User.php.
◆ name()
Returns a user friendly name for an user ID.
- Parameters
-
- Returns
- string
Definition at line 95 of file User.php.
◆ record()
Get the record (data) for a user.
- Parameters
-
- Returns
- array Assoc.array (false when not found).
Definition at line 103 of file User.php.
◆ setId()
◆ $_authenticators
Available authentication checks.
Definition at line 24 of file User.php.
◆ $_files
◆ $_id
◆ $_record
◆ $authenticationControllerName
$authenticationControllerName = null |
Set if the user has to provide more information for authentication.
Definition at line 20 of file User.php.
◆ $authorative
◆ $filesClassName
$filesClassName = __CLASS__ . '\\Files' |
Class name for the file manager.
Definition at line 21 of file User.php.
◆ EVENT_ID
const EVENT_ID = 'user:id' |
◆ EVENT_INVALIDATE
const EVENT_INVALIDATE = 'user:invalidate' |
◆ EVENT_NAME
const EVENT_NAME = 'user:name' |
◆ EVENT_RECORD
const EVENT_RECORD = 'user:record' |
◆ EVENT_RIGHT_LEVEL
const EVENT_RIGHT_LEVEL = 'user:rightLevel' |
◆ EVENT_SET
const EVENT_SET = 'user:set' |
◆ RIGHT_LEVEL_EXECUTE
const RIGHT_LEVEL_EXECUTE = 'x' |
◆ RIGHT_LEVEL_READ
const RIGHT_LEVEL_READ = 'r' |
◆ RIGHT_LEVEL_SEPARATOR
const RIGHT_LEVEL_SEPARATOR = ':' |
Separator between right and level in a single string notation.
Definition at line 10 of file User.php.
◆ RIGHT_LEVEL_WRITE
const RIGHT_LEVEL_WRITE = 'w' |
The documentation for this class was generated from the following file:
- /var/www/fred.local/vendor/rsi/fred/src/Rsi/Fred/User.php