PEAR_Config::singleton()
PEAR_Config::singleton() -- Return a reference of a PEAR_Config object
概要
require_once 'PEAR/config.php'; |
object &PEAR_Config::singleton ([string $user_file = '' [, string $system_file = '']])
説明
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.
パラメータ
- string
$user_file
file to read user-defined options from
- string
$system_file
file to read system-wide defaults from
返り値
object -
an existing or new PEAR_Config instance