MediaWiki
REL1_30
ImportStringSource.php
Go to the documentation of this file.
1
<?php
34
class
ImportStringSource
implements
ImportSource
{
35
function
__construct
( $string ) {
36
$this->mString = $string;
37
$this->mRead =
false
;
38
}
39
43
function
atEnd
() {
44
return
$this->mRead;
45
}
46
50
function
readChunk
() {
51
if
( $this->
atEnd
() ) {
52
return
false
;
53
}
54
$this->mRead =
true
;
55
return
$this->mString;
56
}
57
}
ImportStringSource
Used for importing XML dumps where the content of the dump is in a string.
Definition
ImportStringSource.php:34
ImportStringSource\atEnd
atEnd()
Definition
ImportStringSource.php:43
ImportStringSource\__construct
__construct( $string)
Definition
ImportStringSource.php:35
ImportStringSource\readChunk
readChunk()
Definition
ImportStringSource.php:50
ImportSource
Source interface for XML import.
Definition
ImportSource.php:32
includes
import
ImportStringSource.php
Generated on Mon Nov 25 2024 15:42:23 for MediaWiki by
1.10.0