Manual:Hooks/wfShellMaintenanceCmd

From MediaWiki.org
Jump to: navigation, search
wfShellMaintenanceCmd
Available from version 1.19.0 (r97954)
Called when generating a shell-escaped command line string to run a maintenance script.

Define function:
public static function onwfShellMaintenanceCmd( &$script, &$parameters, &$options ) { ... }

Attach hook:
$wgHooks['wfShellMaintenanceCmd'][] = 'MyExtensionHooks::onwfShellMaintenanceCmd';
Called from: GlobalFunctions.php

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:wfShellMaintenanceCmd extensions.


[edit] Details

Return false from the hook if the IP address should be exempted from the account creation throttle.

  • &$script: MediaWiki maintenance script path
  • &$parameters: Array of arguments and options to the script
  • &$options: Associative array of options, may contain the 'php' and 'wrapper' keys
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox