28require_once __DIR__ .
'/Maintenance.php';
46 parent::__construct();
49 $this->
addOption( $name,
'',
false,
true );
52 $this->
addOption( $name,
'',
false,
false );
66 parent::maybeHelp(
true );
70 global $args, $options;
72 $args = $this->parameters->getArgs();
73 $options = $this->parameters->getOptions();
79require_once RUN_MAINTENANCE_IF_MAIN;
global $allowUnregisteredOptions
global $optionsWithoutArgs
execute()
Do the actual work.
maybeHelp( $force=false)
No help, it would just be misleading since it misses custom options.
__construct()
Default constructor.
Abstract maintenance class for quickly writing and churning out maintenance scripts with minimal effo...
addOption( $name, $description, $required=false, $withArg=false, $shortName=false, $multiOccurrence=false)
Add a parameter to the script.
setAllowUnregisteredOptions( $allow)
Sets whether to allow unregistered options, which are options passed to a script that do not match an...