Nexista_ConfigThe configuration system of Nexista is XML based and is designed to allow for multiple modes (i.e live, development, etc...).
Located in /kernel/config.php (line 22)
static get (line 284)
Retrieves a config value
Retrieves a value for a config variable. If a mode is set it will attempt to get the value for this variable in the preferred mode. If nothing is found, it will then attempt to retrieve the default value in the local config file and will finally look for the default master value. Note that this method makes use of xpath and adds on the mode criteria
static getMode (line 140)
Retrieves the current mode
static getSection (line 323)
Retrieves a config section
Retrieves an array of values for a config section. If a mode is set it will attempt to get the value for these variable in the preferred mode. If nothing is found, it will then attempt to retrieve the default value in the local config file and will finally look for the default master value.
static setMode (line 127)
Sets the configuration mode
A mode is set in the config files for each entry in case of multiple entries of the same type that may be used in different environment such as live, dev, debug mode. This mode, which is optional but if given it will be used by the config process to determine which entry to retrieve.
static singleton (line 379)
Returns a class Nexista_singleton.
static writeConfig (line 230)
Writes a combined config file for runtime
The master config and optional local config are output as a combined xml file that is used by the runtime system
load (line 155)
Reads and parses all config data
Reads the master and optional local config file into a common simpleXML object
loadMasterConfig (line 199)
Reads the master
returnMasterConfig (line 213)
Return master config simple xml object
setLocal (line 104)
Sets the local override application config data
This method accepts a local config file that can be used to:
setMaster (line 82)
Sets the master application config data
This method loads the config data that holds the applciation parameters such as paths, location of sitemap, session preferences, db connections, etc... Some of this data will be written directly in the gate files during the compile process.
Documentation generated on Tue, 11 Mar 2008 23:22:55 -0400 for Nexista 0.2.0