config Class Reference

Help class for handling config items transparently, i.e independent of storage location (file or database). More...

Static Public Member Functions

static get ($config_str, $page='', $save=false)
 Fetch config item from db or config file.
static get_cgi_cfg_key ($key=false, $file='cgi.cfg')
 Fetch specific key from config file Default is cgi.cfg.
static get_version_info ()
 On a OP5 Monitor system, return the system version.

Data Fields

const CONFIG_NOT_FOUND = null
 Dummy value to compare to when .

Detailed Description

Help class for handling config items transparently, i.e independent of storage location (file or database).


Member Function Documentation

static config::get ( config_str,
page = '',
save = false 
) [static]

Fetch config item from db or config file.

Parameters:
$config_str string The setting to get
$page Deprecated, do not use
$save Deprecated, do not use
Returns:
the value of the setting, or CONFIG_NOT_FOUND if not found
static config::get_version_info (  )  [static]

On a OP5 Monitor system, return the system version.

Returns:
string

Field Documentation

Dummy value to compare to when .

.. no config was found!


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables

Generated on 19 Dec 2018 for ninja by  doxygen 1.6.1