MediaWiki  REL1_22
purgeOldText.php
Go to the documentation of this file.
00001 <?php
00025 require_once __DIR__ . '/Maintenance.php';
00026 
00032 class PurgeOldText extends Maintenance {
00033     public function __construct() {
00034         parent::__construct();
00035         $this->mDescription = "Purge old text records from the database";
00036         $this->addOption( 'purge', 'Performs the deletion' );
00037     }
00038 
00039     public function execute() {
00040         $this->purgeRedundantText( $this->hasOption( 'purge' ) );
00041     }
00042 }
00043 
00044 $maintClass = "PurgeOldText";
00045 require_once RUN_MAINTENANCE_IF_MAIN;