User_Setting
in package
User Settings Object
Tags
Table of Contents
Properties
- $objMail : User_Setting_Mail
- The user mail object
Methods
- __construct() : mixed
- getMail() : mixed
- getSettings() : array<string|int, mixed>
- Returns the current settings array
- getUserValidities() : array<string|int, mixed>
- Returns an array containing the available account validity time periods in days in ascending order.
- setSettings() : mixed
Properties
$objMail
The user mail object
protected
User_Setting_Mail
$objMail
Methods
__construct()
public
__construct() : mixed
getMail()
public
getMail() : mixed
getSettings()
Returns the current settings array
public
static getSettings([bool $reload = false ]) : array<string|int, mixed>
Note that the records are read from the database on the first call and stored locally. Successive calls will yield the same array, regardless of changes made to the table, unless $reload is set to true.
Parameters
- $reload : bool = false
-
Force reloading if true. Defaults to false
Tags
Return values
array<string|int, mixed> —The settings array
getUserValidities()
Returns an array containing the available account validity time periods in days in ascending order.
public
static getUserValidities() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —The time periods
setSettings()
public
static setSettings(mixed $arrSettings) : mixed
Parameters
- $arrSettings : mixed