previousPEAR_ErrorStack::setMessageCallback (Previous) (Next) PEAR_ErrorStack::staticGetErrorsnext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

PEAR_ErrorStack::singleton

PEAR_ErrorStack::singleton() – Devuelve una única pila de error para este paquete.

Synopsis

require_once 'PEAR/ErrorStack.php';

PEAR_ErrorStack& PEAR_ErrorStack::singleton ( string $package , callback $msgCallback = = false , callback $contextCallback = = false , boolean $throwPEAR_Error = = false , string $exceptionClass = = null , string $stackClass = 'PEAR_ErrorStack' )

Description

Notar que todos los parámetros serán ignorados si la pila para el paquete $package ya ha sido instanciado

Parameter

string $package

nombre del paquete al que esta pila de error representa

callback $msgCallback

callback empleado para la generación de mensajes de error

callback $contextCallback

callback empleado para la generación del contexto, por defecto getFileLine()

boolean $throwPEAR_Error

Si es TRUE, entonces PEAR::raiseError() será llamada y un objeto PEAR_Error será devuelto por las llamadas a PEAR_ErrorStack::push()

string $exceptionClass

clase de Excepción a instanciar si se corre en PHP 5

string $stackClass

clase a instanciar

Throws

throws no se lanza ninguna excepción

Note

This function should be called statically.

previousPEAR_ErrorStack::setMessageCallback (Previous) (Next) PEAR_ErrorStack::staticGetErrorsnext

Download Documentation Last updated: Sun, 18 Oct 2009
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.