AuthenticationObject
in package
Table of Contents
- $data : array<string|int, mixed>|null
- $permissionChanged : bool
- Process-wide flag indicating that permission-related data has changed.
- $id : int|null
- __construct() : mixed
- checkInstance() : mixed
- clearFields() : void
- getAll() : array<string|int, mixed>
- getField() : mixed
- id() : mixed
- nullId() : mixed
- setField() : void
Properties
$data
protected
array<string|int, mixed>|null
$data
= null
The data of the authentication object
$permissionChanged
Process-wide flag indicating that permission-related data has changed.
protected
static bool
$permissionChanged
= false
Declared once on the base class (and never redeclared in the trait or subclasses) so that User, Role and Group all share a single storage slot. When true, cached permissions are reloaded on each access, regardless of which authentication object triggered the change.
$id
private
int|null
$id
= null
The ID of the authentication object
Methods
__construct()
public
__construct(array<string|int, mixed> $data) : mixed
Parameters
- $data : array<string|int, mixed>
Return values
mixed —checkInstance()
public
checkInstance() : mixed
Return values
mixed —clearFields()
public
clearFields() : void
Return values
void —getAll()
public
getAll() : array<string|int, mixed>
Return values
array<string|int, mixed> —getField()
public
getField(string $field) : mixed
Parameters
- $field : string
Return values
mixed —id()
public
id() : mixed
Return values
mixed —nullId()
public
nullId() : mixed
Return values
mixed —setField()
protected
setField(string $field, mixed $value) : void
Parameters
- $field : string
- $value : mixed