MediaWiki master
ImportSource.php
Go to the documentation of this file.
1<?php
32interface ImportSource {
33
40 public function atEnd();
41
50 public function readChunk();
51
57 public function isSeekable();
58
65 public function seek( int $offset );
66}
Source interface for XML import.
readChunk()
Return a chunk of the input, as a (possibly empty) string.
isSeekable()
Check if the source is seekable and a call to self::seek is valid.
seek(int $offset)
Seek the input to the given offset.
atEnd()
Indicates whether the end of the input has been reached.