Documentation

User
in package

User

This class is responsible for user authentication.

Table of Contents

Properties

$model_user  : ModelAccountUser
$user  : array<string|int, mixed>|null
User object

Methods

__construct()  : mixed
auth()  : void
Identifies the user based on the presence of his id in the session.
getCurrentUser()  : array<string|int, mixed>|null
Returns a user object, or null if the user is not authenticated.
unAuth()  : void
Resets user authentication.

Properties

$user

User object

private array<string|int, mixed>|null $user = \null

Methods

__construct()

public __construct() : mixed

auth()

Identifies the user based on the presence of his id in the session.

public auth() : void

getCurrentUser()

Returns a user object, or null if the user is not authenticated.

public getCurrentUser() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

unAuth()

Resets user authentication.

public unAuth() : void

        
On this page

Search results