PEAR_Config::setRegistry

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

Synopsis

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

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

Description

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.

Parameter

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

throws no exceptions thrown

Note

This function can not be called statically.

setInstallRoot (Previous) Return a reference of a PEAR_Config object (Next)
Last updated: Mon, 15 Sep 2014 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.