< Manual:Hooks 
 
      | wfShellWikiCmd | |
|---|---|
| Available from version 1.20.0 (r97954, codereview) Called when generating a shell-escaped command line string to run a cli script. | |
| Define function: | public static function onwfShellWikiCmd( &$script, &$parameters, &$options ) { ... }
 | 
| Attach hook: | In extension.json: {
	"Hooks": {
		"wfShellWikiCmd": "MyExtensionHooks::onwfShellWikiCmd"
	}
}
 | 
| Called from: | File(s): GlobalFunctions.php | 
| Interface: | wfShellWikiCmdHook.php | 
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:wfShellWikiCmd extensions.
 Warning:  in 1.19 this hook was named wfShellMaintenanceCmd.
 Warning:  in 1.19 this hook was named wfShellMaintenanceCmd.
Details
- &$script: MediaWiki cli script path
- &$parameters: Array of arguments and options to the script
- &$options: Associative array of options, may contain the 'php' and 'wrapper' keys
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.