MediaWiki REL1_31
ImportStringSource.php
Go to the documentation of this file.
1<?php
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}
Used for importing XML dumps where the content of the dump is in a string.
Source interface for XML import.