MediaWiki
REL1_39
ImportStringSource.php
Go to the documentation of this file.
1
<?php
34
class
ImportStringSource
implements
ImportSource
{
36
private
$mString;
37
39
private
$mRead =
false
;
40
44
public
function
__construct
( $string ) {
45
$this->mString = $string;
46
}
47
51
public
function
atEnd
() {
52
return
$this->mRead;
53
}
54
58
public
function
readChunk
() {
59
if
( $this->
atEnd
() ) {
60
return
false
;
61
}
62
$this->mRead =
true
;
63
return
$this->mString;
64
}
65
}
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:51
ImportStringSource\__construct
__construct( $string)
Definition
ImportStringSource.php:44
ImportStringSource\readChunk
readChunk()
Definition
ImportStringSource.php:58
ImportSource
Source interface for XML import.
Definition
ImportSource.php:32
includes
import
ImportStringSource.php
Generated on Mon Dec 2 2024 06:23:17 for MediaWiki by
1.10.0