Config::parseConfig (Previous) (Next) Config::setRoot

View this page in Last updated: Sun, 28 Sep 2008
English | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

Config::registerConfigType()

Config::registerConfigType() -- Registers a custom Config container

Description

This method registers a new container type with the Config class.

Paramètres

chaîne de caractères $configType

The name of the configuration type.

array $configInfo

An array defining the file containing the container's class definition and the class name. The format for this array is as follows:


<?php
$configInfo = array('path/to/Name.php',             // The path to the source file for the class.
                    'Config_Container_Class_Name'   // The name of the container class.
                   );
?>

If omitted, the default values are:


<?php
$configInfo = array("Config/Container/$configType.php",
                    "Config_Container_$configType"
                   );
?>

Valeur retournée

mixed - Retourne TRUE en cas de succès, un objet PEAR_Error en cas d'échec.

Config::parseConfig (Previous) (Next) Config::setRoot

Download Documentation Last updated: Sun, 28 Sep 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.