Config::writeConfig()

Config::writeConfig() -- Write container content to datasource

Referentiesamenvatting

require_once 'Config.php';

mixed Config::writeConfig ([mixed $datasrc = NULL [, string $configType = NULL [, array $options = array()]]])

Beschrijving

This method will call the root Config_Container::writeDatasrc() method which in turn will try to write the Config contents to the datasource.

Parameter

mixed $datasrc

Datasource to write to

string $configType

Type of configuration for writer

array $options

Options for writer

Return waarde

mixed - Geeft TRUE terug bij success, PEAR_Error als het faalt.

Throws

Tabel 32-1. Mogelijke PEAR_Error waarden

Error codeError valueMeaningSolution
 ""  

Note

Deze functie kan niet statisch worden aangeroepen.

Voorbeeld

This example shows how to convert a configuration from a php file which contains a php array to an xml file.