trait Config

Methods

string
getVersion()

Get the Jaxon library version number

void
setOption(string $sName, mixed $sValue)

Set the value of a config option

void
setOptions(array $aOptions, string $sKeys = '')

Set the values of an array of config options

mixed
getOption(string $sName, mixed $xDefault = null)

Get the value of a config option

bool
hasOption(string $sName)

Check the presence of a config option

array
getOptionNames(string $sPrefix)

Get the names of the options matching a given prefix

Config
newConfig()

Create a new the config manager

Details

at line line 24
string getVersion()

Get the Jaxon library version number

Return Value

string The version number

at line line 37
void setOption(string $sName, mixed $sValue)

Set the value of a config option

Parameters

string $sName The option name
mixed $sValue The option value

Return Value

void

at line line 50
void setOptions(array $aOptions, string $sKeys = '')

Set the values of an array of config options

Parameters

array $aOptions The config options
string $sKeys The keys of the options in the array

Return Value

void

at line line 63
mixed getOption(string $sName, mixed $xDefault = null)

Get the value of a config option

Parameters

string $sName The option name
mixed $xDefault The default value, to be returned if the option is not defined

Return Value

mixed The option value, or null if the option is unknown

at line line 75
bool hasOption(string $sName)

Check the presence of a config option

Parameters

string $sName The option name

Return Value

bool True if the option exists, and false if not

at line line 87
array getOptionNames(string $sPrefix)

Get the names of the options matching a given prefix

Parameters

string $sPrefix The prefix to match

Return Value

array The options matching the prefix

at line line 97
Config newConfig()

Create a new the config manager

Return Value

Config The config manager