applicationClass comprising the functionality of an application. This is used to contain and manage the basic configuration properties of an application. This class knows how to read the configuration in, store the values, and write it out again.
Located in /application-defs.php (line 224)
xmlparser | --application
mixed
$attr
= array() (line 232)
Attributes array for current/last tag
mixed
$configpath
= "" (line 226)
Path to application configuration file
mixed
$definitions
= array() (line 237)
mixed
$globals
= array() (line 238)
mixed
$settings
= array() (line 239)
mixed
$state
= "" (line 228)
State of processing
mixed
$tag
= "" (line 230)
Current/last tag opened
mixed
$valid
= false (line 234)
True if response was valid, ie. no errors
Inherited from xmlparser
xmlparser::$error_message
xmlparser::$parser
xmlparser::$valid_xml
Construct a new application. Creating the application will also attempt to read in the XML configuration file as specified (or defaulted). If the file is read successfully, then the valid flag is set true.
Method invoked when character data is available
Get the value of a named parameter from a named setting. This only works for settings which are unique - ie. it won't work well for parms which can occur multiple times, eg: 'database'. Option to specify the element name for arrayed parameters.
Return setting by name. NB: some settings can have multiple entries under the same name, eg. 'database'. In this case we return an array of setting objects, otherwise the single setting object.
We return false if not found.
Return dump of the application content as a string. Useful for diagnostics mainly.
Parse the application XML which is provided.
Save the application as XML file back to the same filename it was read in from, ie. after changes have been made. This generates the whole file as fresh XML, and writes it out.
Set the value of a named parameter for a named setting. Optionally provide the element name for arrayed parameters.
Make this current application object the same structure as the
given application. This process checks that the definitions, globals, and settings of this application match those of the given one. If a given item is missing, it is created. If an item is not present in the given application, it is deleted in this one. Existing items retain their current values - only structure is checked.
Method invoked when a tag is closed
Method invoked when a tag is opened
Inherited From xmlparser
xmlparser::xmlparser()
xmlparser::cdata()
xmlparser::parse()
xmlparser::tag_close()
xmlparser::tag_open()
Documentation generated by phpDocumentor 1.3.0RC3