MediaWiki
master
DumpLatestFilter.php
Go to the documentation of this file.
1
<?php
29
class
DumpLatestFilter
extends
DumpFilter
{
31
public
$page
;
32
34
public
$pageString
;
35
37
public
$rev
;
38
40
public
$revString
;
41
46
public
function
writeOpenPage
(
$page
, $string ) {
47
$this->page =
$page
;
48
$this->pageString = $string;
49
}
50
54
public
function
writeClosePage
( $string ) {
55
if
( $this->rev ) {
56
$this->sink->writeOpenPage( $this->page, $this->pageString );
57
$this->sink->writeRevision( $this->rev, $this->revString );
58
$this->sink->writeClosePage( $string );
59
}
60
$this->rev =
null
;
61
$this->revString =
null
;
62
$this->page =
null
;
63
$this->pageString =
null
;
64
}
65
70
public
function
writeRevision
(
$rev
, $string ) {
71
if
(
$rev
->rev_id == $this->page->page_latest ) {
72
$this->rev =
$rev
;
73
$this->revString = $string;
74
}
75
}
76
}
DumpFilter
Definition
DumpFilter.php:31
DumpLatestFilter
Definition
DumpLatestFilter.php:29
DumpLatestFilter\writeClosePage
writeClosePage( $string)
Definition
DumpLatestFilter.php:54
DumpLatestFilter\$page
stdClass null $page
Definition
DumpLatestFilter.php:31
DumpLatestFilter\$rev
stdClass null $rev
Definition
DumpLatestFilter.php:37
DumpLatestFilter\$revString
string null $revString
Definition
DumpLatestFilter.php:40
DumpLatestFilter\writeRevision
writeRevision( $rev, $string)
Definition
DumpLatestFilter.php:70
DumpLatestFilter\writeOpenPage
writeOpenPage( $page, $string)
Definition
DumpLatestFilter.php:46
DumpLatestFilter\$pageString
string null $pageString
Definition
DumpLatestFilter.php:34
includes
export
DumpLatestFilter.php
Generated on Fri Dec 13 2024 20:23:57 for MediaWiki by
1.10.0