ArininAV

Config::writeConfig()

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

Synopsis

require_once 'Config.php';

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

Описание

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

Параметр

mixed $datasrc

Datasource to write to

string $configType

Type of configuration for writer

array $options

Options for writer

Возвращаемое значение

mixed - Возвращает TRUE при удаче и PEAR_Error в обратном случае.

Throws

Таблица 30-1. Возможные значения PEAR_Error

Error codeError valueMeaningSolution
 ""  

Заметка

Эта функция не должна вызываться статически.

Пример

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