MediaWiki master
ImportSource.php
Go to the documentation of this file.
1<?php
13namespace MediaWiki\Import;
14
20interface ImportSource {
21
28 public function atEnd();
29
38 public function readChunk();
39
45 public function isSeekable();
46
53 public function seek( int $offset );
54}
55
57class_alias( ImportSource::class, 'ImportSource' );
Source interface for XML import.
isSeekable()
Check if the source is seekable and a call to self::seek is valid.
atEnd()
Indicates whether the end of the input has been reached.
readChunk()
Return a chunk of the input, as a (possibly empty) string.
seek(int $offset)
Seek the input to the given offset.