Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 62962 программиста и 3379 роботов. Сейчас ищут 954 программиста ...
Config::registerConfigType
Вернуться к: Config class
Config::registerConfigType
Config::registerConfigType() – Registers a custom Config container
Synopsis
require_once 'Config.php';
bool Config::registerConfigType ( string $configType , array $configInfo = false )
This method registers a new container type with the Config class.
Parameter
- string $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"
);
?>
Return value
mixed - Returns TRUE on success, PEAR_Error on failure.
Вернуться к: Config class