require_once( 'FiveUpgrade.inc' );
+/**
+ * @ingroup Maintenance
+ */
abstract class TableCleanup extends FiveUpgrade {
function __construct( $table, $dryrun = false ) {
parent::__construct();
$result = $this->dbr->query( $sql, $fname );
while( $row = $this->dbr->fetchObject( $result ) ) {
- $updated = call_user_func( $callback, $row );
+ call_user_func( $callback, $row );
}
$this->log( "Finished $table... $this->updated of $this->processed rows updated" );
$this->dbr->freeResult( $result );
abstract function processPage( $row );
}
-
-?>