PEAR_ErrorStack::setMessageCallback (Previous) (Next) PEAR_ErrorStack::staticGetErrors

View this page in Last updated: Sun, 01 Jul 2007
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

PEAR_ErrorStack::singleton()

PEAR_ErrorStack::singleton() -- Return a single error stack for this package.

Áttekintés

require_once 'PEAR/ErrorStack.php';

PEAR_ErrorStack & PEAR_ErrorStack::singleton (string $package [, callback $msgCallback = FALSE [, callback $contextCallback = FALSE [, boolean $throwPEAR_Error = FALSE, string [$stackClass = 'PEAR_ErrorStack']]]])

Backwards Compatibility Warning

Figyelem

As of PEAR 1.3.2, PEAR_ErrorStack no longer instantiates and returns an Exception object in PHP5, and the second-to-last parameter has been removed. Code that relies upon this behavior will break.

Leírás

Note that all parameters are ignored if the stack for package $package has already been instantiated

Paraméterek

string $package

name of the package this error stack represents

callback $msgCallback

callback used for error message generation

callback $contextCallback

callback used for context generation, defaults to getFileLine()

boolean $throwPEAR_Error

If TRUE, then PEAR::raiseError() will be called and a PEAR_Error object will be returned from calls to PEAR_ErrorStack::push()

string $stackClass

class to instantiate

Lehetséges hibaértékek

Nem dob kivételeket.

Megjegyzés

Ez a függvény statikus meghívásra van felkészítve!

PEAR_ErrorStack::setMessageCallback (Previous) (Next) PEAR_ErrorStack::staticGetErrors

Download Documentation Last updated: Sun, 01 Jul 2007
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.