MediaWiki REL1_35
|
Source interface for XML import. More...
Public Member Functions | |
atEnd () | |
Indicates whether the end of the input has been reached. | |
readChunk () | |
Return a chunk of the input, as a (possibly empty) string. | |
Source interface for XML import.
Definition at line 32 of file ImportSource.php.
ImportSource::atEnd | ( | ) |
Indicates whether the end of the input has been reached.
Will return true after a finite number of calls to readChunk.
Implemented in ImportStreamSource, and ImportStringSource.
ImportSource::readChunk | ( | ) |
Return a chunk of the input, as a (possibly empty) string.
When the end of input is reached, readChunk() returns false. If atEnd() returns false, readChunk() will return a string. If atEnd() returns true, readChunk() will return false.
Implemented in ImportStreamSource, and ImportStringSource.