MediaWiki REL1_31
ExportProgressFilter.php
Go to the documentation of this file.
1<?php
31 private $progress;
32
33 function __construct( &$sink, &$progress ) {
34 parent::__construct( $sink );
35 $this->progress = $progress;
36 }
37
38 function writeClosePage( $string ) {
39 parent::writeClosePage( $string );
40 $this->progress->reportPage();
41 }
42
43 function writeRevision( $rev, $string ) {
44 parent::writeRevision( $rev, $string );
45 $this->progress->revCount();
46 }
47}
DumpOutput $sink
FIXME will need to be made protected whenever legacy code is updated.
__construct(&$sink, &$progress)
presenting them properly to the user as errors is done by the caller return true use this to change the list i e etc $rev
Definition hooks.txt:1777