This is a class for storing configuration data, keeping track of which are system-defined, user-defined or defaulted.
Located in /maintenance/libraries/pear/PEAR/Config.php (line 196)
PEAR | --PEAR_Config
Configuration data, two-dimensional array where the first dimension is the config layer ('user', 'system' and 'default'), and the second dimension is keyname => value.
The order in the first dimension is important! Earlier layers will shadow later ones when a config value is requested (if a 'user' value exists, it will be returned first, then 'system' and finally 'default').
Information about the configuration data. Stores the type, default value and a documentation string for each configuration value.
Array of config files used.
Constructor.
Tells what config layer that gets to define a key.
Returns a configuration value, prioritizing layers as per the layers property.
Gets the file used for storing the config for a layer
Get the documentation for a config value.
Get the parameter group for a config key.
Get the list of the parameters in a group.
Get the list of parameter groups.
Get all the current config keys.
Returns the layers defined (except the 'default' one)
Get the short documentation for a config value.
Get the list of allowed set values for a config value. Returns NULL for config values that are not sets.
Get the type of a config value.
Tells whether a config value has a system-defined value.
Tells whether a given key exists as a config value.
Tells whether a given config layer exists.
Merges data into a config layer from a file. Does the same thing as readConfigFile, except it does not replace all existing values in the config layer.
Reads configuration data from a file. All existing values in the config layer are discarded and replaced with data from the file.
Remove the a config key from a specific config layer.
Temporarily remove an entire config layer. USE WITH CARE!
Set a config value in a specific layer (defaults to 'user').
Enforces the types defined in the configuration_info array. An integer config variable will be cast to int, and a set config variable will be validated against its legal values.
Static singleton method. If you want to keep only one instance of this class in use, this method will give you a reference to the last created PEAR_Config object if one exists, or create a new object.
Stores configuration data in a layer.
Unset the user-defined value of a config key, reverting the value to the system-defined one.
Writes data into a config layer from a file.
Decodes/unscrambles configuration data after reading from files.
Encodes/scrambles configuration data before writing to files.
Currently, 'password' values will be base64-encoded as to avoid that people spot cleartext passwords by accident.
Reads configuration data from a file and returns the parsed data in an array.
Documentation generated on Fri, 11 Feb 2005 18:12:55 +0000 by phpDocumentor 1.3.0RC3