MediaWiki  master
ExportProgressFilter.php
Go to the documentation of this file.
1 <?php
31  private $progress;
32 
37  public function __construct( &$sink, &$progress ) {
38  parent::__construct( $sink );
39  $this->progress = $progress;
40  }
41 
43  public function writeClosePage( $string ) {
44  parent::writeClosePage( $string );
45  $this->progress->reportPage();
46  }
47 
49  public function writeRevision( $rev, $string ) {
50  parent::writeRevision( $rev, $string );
51  $this->progress->revCount();
52  }
53 }
ExportProgressFilter\writeRevision
writeRevision( $rev, $string)
Definition: ExportProgressFilter.php:49
ExportProgressFilter\$progress
BackupDumper $progress
Definition: ExportProgressFilter.php:31
ExportProgressFilter\writeClosePage
writeClosePage( $string)
Definition: ExportProgressFilter.php:43
ExportProgressFilter\__construct
__construct(&$sink, &$progress)
Definition: ExportProgressFilter.php:37
DumpFilter
Definition: DumpFilter.php:31
DumpFilter\$sink
DumpOutput $sink
FIXME will need to be made protected whenever legacy code is updated.
Definition: DumpFilter.php:37
BackupDumper
Definition: BackupDumper.php:39
ExportProgressFilter
Definition: ExportProgressFilter.php:27