Manual:$wgExceptionHooks/fr

From Linux Web Expert

Revision as of 07:50, 24 February 2023 by imported>Alien333 (Created page with "Les crochets reçoivent l'objet exception comme leur premier argument et devraient retourner des chaînes au faux.")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<translate> Extensions</translate>: $wgExceptionHooks
Crochets utilisés pour sortir les exceptions.
<translate> Introduced in version:</translate>1.12.0 (r29444)
<translate> Removed in version:</translate>1.30.0 (Gerrit change 355060; git #I85844a2)
<translate> Allowed values:</translate>(tableau de rappels)
<translate> Default value:</translate>[]

Détails

Crochets utilisés pour sortir les exceptions. Le format est :

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

ou:

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

Les crochets reçoivent l'objet exception comme leur premier argument et devraient retourner des chaînes au faux.