PEAR_Config::setRegistry()

PEAR_Config::setRegistry() -- This is to allow customization like the use of installroot

概要

require_once '/Config.php'; (since PEAR 1.4.0)

bool PEAR_Config::setRegistry (PEAR_Registry|false &$reg [, string $layer = 'user'])

説明

Use this to override the automatic registry creation performed whenever the php_dir configuration variable is modified.

If noRegistry() has been called, this call will be ignored and FALSE returned. In addition, it is not possible to set the registry for the ftp layer.

パラメータ

PEAR_Registry|false &$reg

The PEAR_Registry that will be used, or false to reset the registry.

string $layer

This must be either user or system

例外・エラー

throws no exceptions thrown

注意

この関数は、スタティックにコールする ことはできません。