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