OptionProvider
uses
Singleton
Table of Contents
Methods
-
__wakeup()
: mixed
-
getInstance()
: static
-
getOption()
: Option|null
-
getUserOptions()
: array<string|int, mixed>
-
invalidateCache()
: void
__wakeup()
public
__wakeup() : mixed
getInstance()
public
static getInstance() : static
getOption()
public
getOption(int $userId, Option $option) : Option|null
Parameters
-
$userId
: int
-
-
$option
: Option
-
-
throws
-
ArgumentException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
getUserOptions()
public
getUserOptions(int $userId) : array<string|int, mixed>
Parameters
-
$userId
: int
-
-
throws
-
ArgumentException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
Return values
array<string|int, mixed>
invalidateCache()
public
invalidateCache(int $userId) : void
Parameters
-
$userId
: int
-