[PEAR_ErrorStack] element index

Package indexes

All elements
e g h p r s _
_
top
Variable $_compat
PEAR_ErrorStack::$_compat in ErrorStack.php
Determines whether a PEAR_Error is thrown upon every error addition
Variable $_contextCallback
If set to a valid callback, this will be used to generate the error
Variable $_errorCallback
If set to a valid callback, this will be called every time an error is pushed onto the stack. The return value will be used to determine whether to allow an error to be pushed or logged.
Variable $_errorMsgs
Error messages - designed to be overridden
Variable $_errors
PEAR_ErrorStack::$_errors in ErrorStack.php
Errors are stored in the order that they are pushed on the stack.
Variable $_errorsByLevel
Storage of errors by level.
Variable $_logger
PEAR_ErrorStack::$_logger in ErrorStack.php
PEAR::Log object for logging errors
Variable $_msgCallback
If set to a valid callback, this will be used to generate the error
Variable $_package
PEAR_ErrorStack::$_package in ErrorStack.php
Package name this error stack represents
Method _handleError
Internal error handler for PEAR_ErrorStack class
Method _log
PEAR_ErrorStack::_log() in ErrorStack.php
Log an error using PEAR::Log
Method _sortErrors
Error sorting function, sorts by time
e
top
Page ErrorStack.php
ErrorStack.php in ErrorStack.php
g
top
Global $GLOBALS['_PEAR_ERRORSTACK_DEFAULT_CALLBACK']
Global error callback (default)
Global $GLOBALS['_PEAR_ERRORSTACK_DEFAULT_LOGGER']
Global Log object (default)
Global $GLOBALS['_PEAR_ERRORSTACK_SINGLETON']
Singleton storage
Method getErrorMessage
Standard error message generation callback
Method getErrorMessageTemplate
Standard Error Message Template generator from code
Method getErrors
Retrieve all errors since last purge
Method getFileLine
Standard file/line number/function/class context callback
Method getMessageCallback
Get an error code => error message mapping callback
h
top
Method hasErrors
Determine whether there are any errors on the stack
p
top
Method PEAR_ErrorStack
Set up a new error stack
Class PEAR_ErrorStack
PEAR_ErrorStack in ErrorStack.php
Error Stack Implementation
Constant PEAR_ERRORSTACK_ERR_NONCLASS
Error code for an attempt to instantiate a non-class as a PEAR_ErrorStack in the singleton method.
Constant PEAR_ERRORSTACK_ERR_OBJTOSTRING
Error code for an attempt to pass an object into PEAR_ErrorStack::getMessage()
Constant PEAR_ERRORSTACK_IGNORE
PEAR_ERRORSTACK_IGNORE in ErrorStack.php
If this is returned, then the error is completely ignored.
Constant PEAR_ERRORSTACK_LOG
PEAR_ERRORSTACK_LOG in ErrorStack.php
If this is returned, then the error will only be logged, but not pushed onto the error stack.
Constant PEAR_ERRORSTACK_PUSH
PEAR_ERRORSTACK_PUSH in ErrorStack.php
If this is returned, then the error will only be pushed onto the stack, and not logged.
Constant PEAR_ERRORSTACK_PUSHANDLOG
PEAR_ERRORSTACK_PUSHANDLOG in ErrorStack.php
If this is returned, then the error will be both pushed onto the stack and logged.
Method pop
PEAR_ErrorStack::pop() in ErrorStack.php
Pop an error off of the error stack
Method popCallback
Remove a callback from the error callback stack
Method push
PEAR_ErrorStack::push() in ErrorStack.php
Add an error to the stack
Method pushCallback
Set an error Callback If set to a valid callback, this will be called every time an error is pushed onto the stack. The return value will be used to determine whether to allow an error to be pushed or logged.
r
top
Method raiseError
emulate PEAR::raiseError()
s
top
Method setContextCallback
Set a callback that generates context information (location of error) for an error stack
Method setDefaultCallback
Sets a default callback to be used by all error stacks
Method setDefaultLogger
Set up a PEAR::Log object for all error stacks that don't have one
Method setErrorMessageTemplate
Set the Error Message Template array
Method setLogger
Set up a PEAR::Log object for this error stack
Method setMessageCallback
Set an error code => error message mapping callback
Method singleton
Return a single error stack for this package.
Method staticGetErrors
Get a list of all errors since last purge, organized by package
Method staticHasErrors
Determine whether there are any errors on a single error stack, or on any error stack
Method staticPopCallback
Remove a temporary overriding error callback
Method staticPush
Static version of push()
Method staticPushCallback
Set a temporary overriding error callback for every package error stack
e g h p r s _