PEAR_ErrorStack::setErrorMessageTemplate

PEAR_ErrorStack::setErrorMessageTemplate() – Set the Error Message Template array

Synopsis

require_once 'PEAR/ErrorStack.php';

string PEAR_ErrorStack::setErrorMessageTemplate ( mixed $template )

Description

The array format must be:  array(error code => 'message template',...)

Error message parameters passed into push() will be used as input for the error message. If the template is 'message %foo% was %bar%', and the parameters are array('foo' => 'one', 'bar' => 'six'), the error message returned will be 'message one was six'

Parameter

mixed $template

Throws

No exceptions thrown.

Note

This function can not be called statically.

Set up a PEAR::
Log object for all error stacks that don't have one (Previous)
Set up a PEAR::
Log object for this error stack (Next)
Last updated: Fri, 19 Dec 2014 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.