|
MediaWiki master
|
Source interface for XML import. More...
Inherited by MediaWiki\Import\ImportStreamSource, and MediaWiki\Import\ImportStringSource.
Public Member Functions | |
| atEnd () | |
| Indicates whether the end of the input has been reached. | |
| isSeekable () | |
| Check if the source is seekable and a call to self::seek is valid. | |
| readChunk () | |
| Return a chunk of the input, as a (possibly empty) string. | |
| seek (int $offset) | |
| Seek the input to the given offset. | |
Source interface for XML import.
Definition at line 20 of file ImportSource.php.
| MediaWiki\Import\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 MediaWiki\Import\ImportStreamSource, and MediaWiki\Import\ImportStringSource.
| MediaWiki\Import\ImportSource::isSeekable | ( | ) |
Check if the source is seekable and a call to self::seek is valid.
Implemented in MediaWiki\Import\ImportStreamSource, and MediaWiki\Import\ImportStringSource.
| MediaWiki\Import\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 MediaWiki\Import\ImportStreamSource, and MediaWiki\Import\ImportStringSource.
| MediaWiki\Import\ImportSource::seek | ( | int | $offset | ) |
Seek the input to the given offset.
| int | $offset |
Implemented in MediaWiki\Import\ImportStreamSource, and MediaWiki\Import\ImportStringSource.