Documentation

CommonUserSettingsTrait

Trait common user settings helper methods.

Tags
since
4.0.8

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|bool

is()

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

Return values
bool

        
On this page

Search results