MediaWiki master
ExportProgressFilter.php
Go to the documentation of this file.
1<?php
25
33 private $progress;
34
39 public function __construct( &$sink, &$progress ) {
40 parent::__construct( $sink );
41 $this->progress = $progress;
42 }
43
45 public function writeClosePage( $string ) {
46 parent::writeClosePage( $string );
47 $this->progress->reportPage();
48 }
49
51 public function writeRevision( $rev, $string ) {
52 parent::writeRevision( $rev, $string );
53 $this->progress->revCount();
54 }
55}
DumpOutput $sink
FIXME will need to be made protected whenever legacy code is updated.
__construct(&$sink, &$progress)