PEAR_Config::singleton

PEAR_Config::singleton() – Devuelve una referencia a un objeto PEAR_Config

Synopsis

require_once 'PEAR/config.php';

object &PEAR_Config::singleton ( string $user_file = '' , string $system_file = '' )

Description

Si se desea mantener solamente una instancia de esta clase en uso, este método devolverá una referencia al último objeto PEAR_Config creado si existe alguno, o creará un nuevo objeto.

Parameter

string $user_file

fichero desde el que leer las opciones definidas por el usuario

string $system_file

fichero desde el que leer los valores por defecto del sistema

Return value

object - una instancia existente o una nueva de PEAR_Config

Note

This function should be called statically.

Establece un valor de configuración en una capa específica (Previous) Almacena datos de configuración en una capa (Next)
Last updated: Sat, 25 May 2013 — 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.