Javascript validator
Web page editor
↑
Config::writeConfig() -- Write container content to datasource
Parameter
- mixed
$datasrc
Datasource to write to
- string
$configType
Type of configuration for writer
- array
$options
Options for writer
Return value
mixed -
Returns TRUE on success,
PEAR_Error on failure.
Note
This function can not be called
statically.
Example
This example shows how to convert a configuration from a php file which contains a php array to an xml file.
Example 37-1. Using writeConfig() $config = new Config();
$config->parseConfig(
'/path/to/file.php',
'phparray',
array('name' => 'conf')
);
$config->writeConfig( '/path/to/file.xml',
'xml',
array('name' => 'conf')
); |
|
→
Javascript validator
Web page editor