PEAR_ErrorStack::setDefaultLogger (Previous) (Next) PEAR_ErrorStack::setLogger

View this page in Last updated: Sun, 05 Oct 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

PEAR_ErrorStack::setErrorMessageTemplate()

PEAR_ErrorStack::setErrorMessageTemplate()  -- エラーメッセージテンプレートの配列を設定する

説明

配列はこのような形式でなければなりません: array(エラーコード => 'メッセージテンプレート',...)

push() に渡されたエラーメッセージパラメータが、エラーメッセージの元として 使われます。 テンプレートが 'message %foo% was %bar%', パラメータが array('foo' => 'one', 'bar' => 'six') であった場合、返されるエラーメッセージは 'message one was six' となります。

パラメータ

mixed $template

例外・エラー

例外はスローされません。

注意

この関数は、スタティックにコールする ことはできません。

PEAR_ErrorStack::setDefaultLogger (Previous) (Next) PEAR_ErrorStack::setLogger

Download Documentation Last updated: Sun, 05 Oct 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.