Manual:Maintenance.php/fr

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

addDescription

 * addDescription( $text);
 * $text: définir le texte de description.

addArg

 * addArg( $arg, $description, $required = true );
 * $arg: nom de l'argument
 * $description: brève description de l'argument
 * $required: est-ce nécessaire ?

addOption

 * addOption($name, $description, $required=false, $withArg=false, $shortName=false);
 * $required: le paramètre est-il requis ?
 * $withArg: un argument est-il requis avec cette option ?
 * $shortName: caractère à utiliser comme nom court

The shortname would be, e.g., 'm' if you wanted -mFast to be an alternative to --mode=Fast.

getArg

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

getOption

 * getOption( $name, $default = null );
 * $name: le nom du parametre
 * $default: défaut

outPut

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

runChild

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