Configuration parser for XML based core config
This class takes a XML DOM-tree and transforms it into a internal array representation. It relies on the sat.config.xsd schema you can find in 'phpsatk-lib/data/schema'.
So far a primitive type (<var ...>) is supported as well as a list (<list ...>) type that allows multiple values per variable.
Make sure that your configuration files use the namespace http://sat.eenterphace.org/schema/SAT/config
- <config xmlns="http://sat.eenterphace.org/schema/SAT/config">
- <var name="somevar1" value="somevalue1" />
- <var name="somevar2" value="somevalue2" />
- <list name="alist">
- <value value="item1" />
- <value value="item2" />
- <value value="item3" />
- </list>
- <use virtual="auth.backend" version="1" module="some.module.id" />
- </config>
There is also a 'use' (<use ...>) configuration directive that is used for the module manager. It allows binding of specific module to virtual modules. ModuleDB It is processed automatically, when using it make sure the module overlay containing it is already loaded and the virtual role has not been already used.
Located in /phpsatk-lib/core/10.config.xml.php (line 61)
Creates a new instance using a DOM-tree or xml data in a string
The configuration data is validated and parsed in this function. Also use directives are processed by passing them to the ModuleDB
Merges this part of the configuration with another
Values of the added object overwrite values of this one.
Debuggung function: dumps all values stored in this configuration object
Gets a boolean variable
Also evaluates values like 'true', 'yes', 'false', 'no' to boolean states. Includes also a default value which is returned if the variable ist not found.
Gets the whole array of configuration data
Gets a single var
If the default argument was passed it will be returned if the variable is not present in configuration. If not set, an exception will be thrown.
Documentation generated on Mon, 21 May 2007 10:34:34 +0200 by phpDocumentor 1.3.0RC5