MediaWiki  REL1_19
purgeOldText.php
Go to the documentation of this file.
00001 <?php
00024 require_once( dirname( __FILE__ ) . '/Maintenance.php' );
00025 
00026 class PurgeOldText extends Maintenance {
00027         public function __construct() {
00028                 parent::__construct();
00029                 $this->mDescription = "Purge old text records from the database";
00030                 $this->addOption( 'purge', 'Performs the deletion' );
00031         }
00032 
00033         public function execute() {
00034                 $this->purgeRedundantText( $this->hasOption( 'purge' ) );
00035         }
00036 }
00037 
00038 $maintClass = "PurgeOldText";
00039 require_once( RUN_MAINTENANCE_IF_MAIN );