\TriTan\Common\OptionsOptionsMapper

Summary

Methods
Properties
Constants
__construct()
create()
read()
update()
delete()
exists()
$db
$context
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$db

$db : 

Type

$context

$context : 

Type

Methods

create()

create(  $name,   $value = '') 

Add an option to the table

Parameters

$name
$value

read()

read(  $option_key,   $default = false) 

Read an option from options_meta.

Return value or $default if not found

Parameters

$option_key
$default

update()

update(  $option_key,   $newvalue) 

Update (add if doesn't exist) an option to options_meta

Parameters

$option_key
$newvalue

delete()

delete(  $name) 

Delete an option from the table

Parameters

$name

exists()

exists(string  $option_key) : boolean

Checks if a key exists in the option table.

Parameters

string $option_key

Key to check against.

Returns

boolean