Config::parseConfig()

Config::parseConfig() -- Parse datasource contents

Synopsis

require_once 'Config.php';

mixed &Config::parseConfig (mixed $datasrc, string $configType [, array $options = array()])

Описание

This method will parse the datasource given and fill the root Config_Container object with other Config_Container objects. It will return a reference to the root Config_Container object or a PEAR_Error if something went wrong.

Параметр

mixed $datasrc

Datasource to parse. For most containers, it is a file path. For the PHP array parser, it can be an array too.

string $configType

Type of configuration to parse

array $options

Options for the parser

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

object - a reference to Config_Container object

Throws

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

Error codeError valueMeaningSolution
 ""  

Заметка

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

Пример


HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ