Parses and saves Apache configuration files. No options are provided by this container.
Generic configuration files. The equals, comment start and new line characters in the parser can be customised to match your prefered configuration format.
Таблица 32-1. Available Options
Option | Data Type | Default value | Description |
---|---|---|---|
"comment" | string | "#" | The character that signifies the start of a comment. |
"equals" | string | ":" | The character that separates keys from values. |
"newline" | string | "\" | The character that signifies that a value continues across multiple lines. |
Таблица 32-2. Available Options
Option | Data Type | Default value | Description |
---|---|---|---|
"name" | string | "conf" | The name to use for the root configuration variable, both when parsing and writing PHP source files. |
"useAttr" | boolean | TRUE | Controls whether attributes are parsed and saved. |
Внимание |
Since config files containing php arrays are just included using the standard php methods, code comments and structure will be lost when saving. |
Parses a XML file using XML_Parser.
Таблица 32-3. Available Options
Option | Data Type | Default value | Description |
---|---|---|---|
"version" | string | "1.0" | The XML version to use. |
"encoding" | string | "ISO-8859-1" | The content encoding to use when parsing and storing data. |
"name" | string | "conf" | As with PHPArray, this defines the name of the global configuration root. |
"indent" | string | " " | The character used for indentation when writing the XML document, if any. By default, two spaces are used. |
"linebreak" | string | "\n" | The line-breaking character(s) to use when writing the XML document. |
"addDecl" | boolean | TRUE | Controls whether the XML declaration is added to the start of the XML document. |
"useAttr" | boolean | TRUE | Controls whether attributes are parsed and saved. |
"isFile" | boolean | TRUE | If TRUE, the first argument to parseConfig() will be taken as the file name for the XML file to load. If FALSE, the argument will be taken as the XML data itself and parsed accordingly. |
"useCData" | boolean | FALSE | Controls whether data is enclosed in CDATA blocks. |
Пред. | Начало | След. |
Editing a configuration | Уровень выше | Config::Config() |
HIVE: All information for read only. Please respect copyright! |