Podręcznik:$wgExceptionHooks

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgExceptionHooks and the translation is 25% complete.

Other languages:
English • ‎español • ‎magyar • ‎polski • ‎português do Brasil • ‎日本語
Rozszerzenia: $wgExceptionHooks
Hooks that are used for outputting exceptions.
Wprowadzono w wersji:1.12.0 (r29444)
Usunięto w wersji:1.30.0 (Gerrit change 355060; git #I85844a2)
Dozwolone wartości:(array of callbacks)
Domyślna wartość:[]

Szczegóły

Hooks that are used for outputting exceptions. Format is:

$wgExceptionHooks['MWException'][] = $funcname;

or:

$wgExceptionHooks['MWException'][] = array( $class, $funcname /*, extra args... */ );

Hooks receive the exception object as their first argument and should return strings or false.