PEAR_ErrorStack::staticGetErrors()

PEAR_ErrorStack::staticGetErrors() -- Get a list of all errors since last purge, organized by package

Synopsis

require_once 'PEAR/ErrorStack.php';

array PEAR_ErrorStack::staticGetErrors ([mixed $purge = FALSE [, boolean $merge = FALSE [, array $sortfunc = array('PEAR_ErrorStack', '_sortErrors'), boolean $clearStack]]])

Description

Static version of PEAR_ErrorStack::getErrors(), returns all errors from all singleton stacks.

Parameter

mixed $purge

boolean $merge

Set to return a flat array, not organized by package

array $sortfunc

Function used to sort a merged array - default sorts by time, and should be good for most cases

boolean $clearStack

Set to purge the error stack of existing errors

Throws

throws no exceptions thrown

Note

This function should be called statically.