Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 22555 программистов и 1575 роботов. Сейчас ищут 1744 программиста ...

PEAR_ErrorStack::staticGetErrors

Вернуться к: PEAR_ErrorStack

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 ( boolean $purge = false , string|false $level = false , boolean $merge = false , array $sortfunc = array('PEAR_ErrorStack', '_sortErrors') )

As of PEAR 1.3.2, the second parameter is a new parameter $level. Any code that relies on $merge being the second parameter will break.

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

Parameter

boolean $purge

Set to purge the error stack of existing errors

string $level

Level name to check for a particular severity. Use this to determine whether only a particular class of errors has occurred, such as whether any warnings have occurred (errors will be ignored)

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

Throws

No exceptions thrown.

Note

This function should be called statically.



Вернуться к: PEAR_ErrorStack

© 2024 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты VIP Сувениры
Разработка компании ODware