\CONFIGDBSTRUCTURE

CONFIGDBSTRUCTURE

Map out the structure of the config table

Summary

Methods
Properties
Constants
__construct()
getOne()
getAllData()
getData()
updateOne()
$dbStructure
$configToConstant
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$dbStructure

$dbStructure : 

array

Type

$configToConstant

$configToConstant : 

array

Type

Methods

__construct()

__construct() : 

CONFIGDBSTRUCTURE

Returns

getOne()

getOne(  field) : 

Get and return one value from the config table.

Requested value must be a configName value that is in $this->dbStructure. For other values, use standard $db functions.

Result is returned as a number if the value is stored in configInt or configFloat columns else the return result is a string or a boolean

Parameters

field

– the table column to match the condition.

Returns

String, float, or boolean

getAllData()

getAllData() : mixed||string|int

Get all data from the config table and return an array of ($field => 'value')

Returns

mixed||string|int —

getData()

getData(  match) : mixed||string|int

Get data from the config table for specific variables and return an array of ($field => 'value')

Parameters

match

is the name of a variable or an array or variable names : array('var1, 'var2', ...).

Returns

mixed||string|int —

updateOne()

updateOne(  name,   value) : 

Update one value in the config table.

Parameters

name

in the 'configName' column (i.e. which configuration variable to update)

value

to set

Returns