PEAR Manual
Prev |  | Next

# PEAR_ErrorStack::setDefaultCallback()

PEAR_ErrorStack::setDefaultCallback() -- Sets a default callback to be used by all error stacks

## Synopsis

    require_once 'PEAR/ErrorStack.php';

``void PEAR_ErrorStack::setDefaultCallback` ([array|string $callback = `FALSE`])`

## Description

This method sets the callback that can be used to generate error messages for a singleton

## Parameter

array|string `$callback`

  Callback function/method

## Throws

No exceptions thrown.

## Note

This function should be called statically.

Prev | Home | Next
PEAR_ErrorStack::setContextCallback() | Up | PEAR_ErrorStack::setDefaultLogger()