MediaWiki master
ExportProgressFilter.php
Go to the documentation of this file.
1<?php
10namespace MediaWiki\Export;
11
13
21 private $progress;
22
27 public function __construct( &$sink, &$progress ) {
28 parent::__construct( $sink );
29 $this->progress = $progress;
30 }
31
33 public function writeClosePage( $string ) {
34 parent::writeClosePage( $string );
35 $this->progress->reportPage();
36 }
37
39 public function writeRevision( $rev, $string ) {
40 parent::writeRevision( $rev, $string );
41 $this->progress->revCount();
42 }
43}
44
46class_alias( ExportProgressFilter::class, 'ExportProgressFilter' );
DumpOutput $sink
FIXME will need to be made protected whenever legacy code is updated.