23require_once __DIR__ .
'/Maintenance.php';
34 parent::__construct();
36 $this->
addArg(
'title',
'Page title to check whether it exists' );
40 $titleArg = $this->
getArg( 0 );
41 $title = Title::newFromText( $titleArg );
42 $pageExists = $title && $title->exists();
45 $text =
"{$title} exists.\n";
47 $text =
"{$titleArg} doesn't exist.\n";
56require_once RUN_MAINTENANCE_IF_MAIN;
Abstract maintenance class for quickly writing and churning out maintenance scripts with minimal effo...
addArg( $arg, $description, $required=true, $multi=false)
Add some args that are needed.
getArg( $argId=0, $default=null)
Get an argument.
output( $out, $channel=null)
Throw some output to the user.
addDescription( $text)
Set the description text.
__construct()
Default constructor.
execute()
Do the actual work.