Manual:Maintenance.php

The Maintenance class is the abstract maintenance class for quickly writing and churning out maintenance scripts with minimal effort.

addDescription
$text: set the description text.
 * addDescription( $text);

addArg
$arg: name of the arg $description: short description of the arg $required: is this required?
 * addArg( $arg, $description, $required = true );

addOption
is the param required? is an argument required with this option? character to use as short name The shortname would be, e.g., 'm' if you wanted -mFast to be an alternative to --mode=Fast.
 * addOption($name, $description, $required=false, $withArg=false, $shortName=false);
 * $required:
 * $withArg:
 * $shortName:

getArg
the integer value (from zero) for the arg the default if it doesn't exist
 * getArg( $argId = 0, $default = null );
 * $argId:
 * $default:

getOption
the name of the param default
 * getOption( $name, $default = null );
 * $name:
 * $default:

outPut

 * output( $output, $channel = null );

runChild
a name of a child maintenance class full path of where the child is
 * runChild( $maintClass, $classFile = null );
 * maintClass:
 * $classFile:

==See also==
 * Manual:Writing maintenance scripts