MediaWiki REL1_34
ImportStringSource.php
Go to the documentation of this file.
1<?php
36 private $mString;
37
39 private $mRead;
40
44 function __construct( $string ) {
45 $this->mString = $string;
46 $this->mRead = false;
47 }
48
52 function atEnd() {
53 return $this->mRead;
54 }
55
59 function readChunk() {
60 if ( $this->atEnd() ) {
61 return false;
62 }
63 $this->mRead = true;
64 return $this->mString;
65 }
66}
Used for importing XML dumps where the content of the dump is in a string.
Source interface for XML import.