\jb\commonOptions

Class Options

Summary

Methods
Properties
Constants
get_key()
get()
add()
update()
delete()
get_default()
get_predefined_page_option_key()
$options
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$options

$options : array

Type

normal

Methods

get_key()

get_key(string  $option) : string

Returns options key

Parameters

string $option

Returns

string

get()

get(string  $option_id, mixed  $default_value = false) : mixed

Get JB option value

Parameters

string $option_id
mixed $default_value

Returns

mixed

add()

add(string  $option_id, mixed  $value) : mixed

Add JB option value

Parameters

string $option_id
mixed $value

Returns

mixed

update()

update(string  $option_id, mixed  $value) : mixed

Update JB option value

Parameters

string $option_id
mixed $value

Returns

mixed

delete()

delete(string  $option_id) : mixed

Delete JB option

Parameters

string $option_id

Returns

mixed

get_default()

get_default(string  $option_id) : mixed

Get JB option default value

Parameters

string $option_id

Returns

mixed

get_predefined_page_option_key()

get_predefined_page_option_key(string  $slug) : string

Get predefined page option key

Parameters

string $slug

Returns

string