phpDocumentor

UserPreferences

Class UserPreferences

Table of Contents

$languageId  : int
$userId  : int|null
__construct()  : mixed
UserPreferences constructor.
isAuthenticated()  : bool
Checks if current user is authenticated.
languageId()  : int
Returns a language id of the shop system.
userId()  : int|null
The customer id is maybe not set.

Properties

Methods

__construct()

UserPreferences constructor.

public __construct(int|null $customerId, int $languageId) : mixed
Parameters
$customerId : int|null
$languageId : int
Return values
mixed

isAuthenticated()

Checks if current user is authenticated.

public isAuthenticated() : bool
Return values
bool

languageId()

Returns a language id of the shop system.

public languageId() : int
Return values
int

userId()

The customer id is maybe not set.

public userId() : int|null

If authenticated returns true, customerId must return a value.

Return values
int|null

Search results