CommonUserSettingsTrait
Trait common user settings helper methods.
Tags
Table of Contents
Methods
- get() : string|bool
- Gets (and persists) a string to the user (settings) metadata.
- is() : bool
- Gets (and persists) a checkbox to the user (settings) metadata.
Methods
get()
Gets (and persists) a string to the user (settings) metadata.
protected
static get(string $meta[, bool $persist = null ]) : string|bool
Parameters
- $meta : string
-
The meta key
- $persist : bool = null
-
If setted it will be updated or deleted
Return values
string|boolis()
Gets (and persists) a checkbox to the user (settings) metadata.
protected
static is(string $meta[, bool $persist = null ]) : bool
Parameters
- $meta : string
-
The meta key
- $persist : bool = null
-
If setted it will be updated or deleted