Manuel:$wgLogActionsHandlers

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

Other languages:
English • ‎dansk • ‎español • ‎français • ‎polski • ‎português do Brasil • ‎русский • ‎中文 • ‎日本語
Pages spéciales: $wgLogActionsHandlers
Similaire à $wgLogActions , mais les valeurs sont des fonctions de callback.
Introduit dans la version :1.13.0 (r34826)
Retiré dans la version :Encore utilisé
Valeurs autorisées :(tableau de fonctions de callback)
Valeur par défaut :voir ci-dessous

Détails

Similaire à $wgLogActions , mais les valeurs sont des fonctions de callback.

Voir Manual:enregistrement dans Special:Log pour davantage d'informations concernant la journalisation dans MediaWiki.

Valeurs par défaut

Version de MediaWiki : 1.31
/**
 * The same as above, but here values are names of classes,
 * not messages.
 * @see LogPage::actionText
 * @see LogFormatter
 */
$wgLogActionsHandlers = [
	'block/block' => BlockLogFormatter::class,
	'block/reblock' => BlockLogFormatter::class,
	'block/unblock' => BlockLogFormatter::class,
	'contentmodel/change' => ContentModelLogFormatter::class,
	'contentmodel/new' => ContentModelLogFormatter::class,
	'delete/delete' => DeleteLogFormatter::class,
	'delete/delete_redir' => DeleteLogFormatter::class,
	'delete/event' => DeleteLogFormatter::class,
	'delete/restore' => DeleteLogFormatter::class,
	'delete/revision' => DeleteLogFormatter::class,
	'import/interwiki' => ImportLogFormatter::class,
	'import/upload' => ImportLogFormatter::class,
	'managetags/activate' => LogFormatter::class,
	'managetags/create' => LogFormatter::class,
	'managetags/deactivate' => LogFormatter::class,
	'managetags/delete' => LogFormatter::class,
	'merge/merge' => MergeLogFormatter::class,
	'move/move' => MoveLogFormatter::class,
	'move/move_redir' => MoveLogFormatter::class,
	'patrol/patrol' => PatrolLogFormatter::class,
	'patrol/autopatrol' => PatrolLogFormatter::class,
	'protect/modify' => ProtectLogFormatter::class,
	'protect/move_prot' => ProtectLogFormatter::class,
	'protect/protect' => ProtectLogFormatter::class,
	'protect/unprotect' => ProtectLogFormatter::class,
	'rights/autopromote' => RightsLogFormatter::class,
	'rights/rights' => RightsLogFormatter::class,
	'suppress/block' => BlockLogFormatter::class,
	'suppress/delete' => DeleteLogFormatter::class,
	'suppress/event' => DeleteLogFormatter::class,
	'suppress/reblock' => BlockLogFormatter::class,
	'suppress/revision' => DeleteLogFormatter::class,
	'tag/update' => TagLogFormatter::class,
	'upload/overwrite' => UploadLogFormatter::class,
	'upload/revert' => UploadLogFormatter::class,
	'upload/upload' => UploadLogFormatter::class,
];
Versions de MediaWiki : 1.28 – 1.30
/**
 * The same as above, but here values are names of classes,
 * not messages.
 * @see LogPage::actionText
 * @see LogFormatter
 */
$wgLogActionsHandlers = [
	'block/block' => 'BlockLogFormatter',                // 1.25.0
	'block/reblock' => 'BlockLogFormatter',              // 1.25.0
	'block/unblock' => 'BlockLogFormatter',              // 1.25.0
	'contentmodel/change' => 'ContentModelLogFormatter', // 1.26.0
	'contentmodel/new' => 'ContentModelLogFormatter',    // 1.27.0
	'delete/delete' => 'DeleteLogFormatter',             // 1.19.0
	'delete/delete_redir' => 'DeleteLogFormatter',       // 1.28.0
	'delete/event' => 'DeleteLogFormatter',              // 1.19.0
	'delete/restore' => 'DeleteLogFormatter',            // 1.19.0
	'delete/revision' => 'DeleteLogFormatter',           // 1.19.0
	'import/interwiki' => 'ImportLogFormatter',          // 1.25.0
	'import/upload' => 'ImportLogFormatter',             // 1.25.0
	'managetags/activate' => 'LogFormatter',             // 1.25.0
	'managetags/create' => 'LogFormatter',               // 1.25.0
	'managetags/deactivate' => 'LogFormatter',           // 1.25.0
	'managetags/delete' => 'LogFormatter',               // 1.25.0
	'merge/merge' => 'MergeLogFormatter',                // 1.25.0
	'move/move' => 'MoveLogFormatter',                   // 1.19.0
	'move/move_redir' => 'MoveLogFormatter',             // 1.19.0
	'patrol/patrol' => 'PatrolLogFormatter',             // 1.19.0
	'patrol/autopatrol' => 'PatrolLogFormatter',         // 1.27.0
	'protect/modify' => 'ProtectLogFormatter',           // 1.27.0
	'protect/move_prot' => 'ProtectLogFormatter',        // 1.26.0
	'protect/protect' => 'ProtectLogFormatter',          // 1.27.0
	'protect/unprotect' => 'ProtectLogFormatter',        // 1.27.0
	'rights/autopromote' => 'RightsLogFormatter',        // 1.21.0
	'rights/rights' => 'RightsLogFormatter',             // 1.21.0
	'suppress/block' => 'BlockLogFormatter',             // 1.25.0
	'suppress/delete' => 'DeleteLogFormatter',           // 1.19.0
	'suppress/event' => 'DeleteLogFormatter',            // 1.19.0
	'suppress/reblock' => 'BlockLogFormatter',           // 1.25.0
	'suppress/revision' => 'DeleteLogFormatter',         // 1.19.0
	'tag/update' => 'TagLogFormatter',                   // 1.25.0
	'upload/overwrite' => 'UploadLogFormatter',          // 1.24.0, 1.25.0
	'upload/revert' => 'UploadLogFormatter',             // 1.24.0, 1.25.0
	'upload/upload' => 'UploadLogFormatter',             // 1.24.0, 1.25.0
];
Version de MediaWiki : 1.19
$wgLogActionsHandlers = array(
	// move, move_redir
	'move/*'            => 'MoveLogFormatter',
	// delete, restore, revision, event
	'delete/*'          => 'DeleteLogFormatter',
	'suppress/revision' => 'DeleteLogFormatter',
	'suppress/event'    => 'DeleteLogFormatter',
	'suppress/delete'   => 'DeleteLogFormatter',
	'patrol/patrol'     => 'PatrolLogFormatter',
);
Versions de MediaWiki : 1.13 – 1.18
$wgLogActionsHandlers = array();