MediaWiki  1.23.1
purgeOldText.php
Go to the documentation of this file.
1 <?php
25 require_once __DIR__ . '/Maintenance.php';
26 
32 class PurgeOldText extends Maintenance {
33  public function __construct() {
34  parent::__construct();
35  $this->mDescription = "Purge old text records from the database";
36  $this->addOption( 'purge', 'Performs the deletion' );
37  }
38 
39  public function execute() {
40  $this->purgeRedundantText( $this->hasOption( 'purge' ) );
41  }
42 }
43 
44 $maintClass = "PurgeOldText";
45 require_once RUN_MAINTENANCE_IF_MAIN;
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
Maintenance\addOption
addOption( $name, $description, $required=false, $withArg=false, $shortName=false)
Add a parameter to the script.
Definition: Maintenance.php:169
PurgeOldText\execute
execute()
Do the actual work.
Definition: purgeOldText.php:39
RUN_MAINTENANCE_IF_MAIN
require_once RUN_MAINTENANCE_IF_MAIN
Definition: maintenance.txt:50
Maintenance
Abstract maintenance class for quickly writing and churning out maintenance scripts with minimal effo...
Definition: maintenance.txt:39
$maintClass
$maintClass
Definition: purgeOldText.php:44
PurgeOldText\__construct
__construct()
Default constructor.
Definition: purgeOldText.php:33
Maintenance\purgeRedundantText
purgeRedundantText( $delete=true)
Support function for cleaning up redundant text records.
Definition: Maintenance.php:943
PurgeOldText
Maintenance script that purges old text records from the database.
Definition: purgeOldText.php:32
Maintenance\hasOption
hasOption( $name)
Checks to see if a particular param exists.
Definition: Maintenance.php:181