08f5ef1aacaad9b2ce0781fcc187db04ff74318b
[lhc/web/wiklou.git] / maintenance / purgeOldText.php
1 <?php
2 /**
3 * Purge old text records from the database
4 *
5 * @ingroup Maintenance
6 * @author Rob Church <robchur@gmail.com>
7 */
8
9 require_once( "Maintenance.php" );
10
11 class PurgeOldText extends Maintenance {
12 public function __construct() {
13 parent::__construct();
14 $this->mDescription = "Purge old text records from the database";
15 $this->addOption( 'purge', 'Performs the deletion' );
16 }
17
18 public function execute() {
19 $this->purgeRedundantText( $this->hasOption('purge') );
20 }
21 }
22
23 $maintClass = "PurgeOldText";
24 require_once( DO_MAINTENANCE );