PEAR_Config::setRegistry (Previous) (Next) PEAR_Config::store

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

PEAR_Config::singleton()

PEAR_Config::singleton() -- Return a reference of a PEAR_Config object

Description

If you want to keep only one instance of this class in use, this method will give you a reference to the last created PEAR_Config object if one exists, or create a new object.

Parameter

string $user_file

file to read user-defined options from

string $system_file

file to read system-wide defaults from

Return value

object - an existing or new PEAR_Config instance

Note

This function should be called statically.

PEAR_Config::setRegistry (Previous) (Next) PEAR_Config::store

Download Documentation Last updated: Sun, 31 Aug 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.