|
MediaWiki master
|
Used for importing XML dumps where the content of the dump is in a string. More...
Inherits MediaWiki\Import\ImportSource.

Public Member Functions | |
| __construct (private readonly string $string,) | |
| atEnd () | |
| isSeekable () | |
| readChunk () | |
| seek (int $offset) | |
Used for importing XML dumps where the content of the dump is in a string.
This class is inefficient, and should only be used for small dumps. For larger dumps, ImportStreamSource should be used instead.
Definition at line 22 of file ImportStringSource.php.
| MediaWiki\Import\ImportStringSource::__construct | ( | private readonly string | $string | ) |
Definition at line 25 of file ImportStringSource.php.
| MediaWiki\Import\ImportStringSource::atEnd | ( | ) |
Implements MediaWiki\Import\ImportSource.
Definition at line 33 of file ImportStringSource.php.
Referenced by MediaWiki\Import\ImportStringSource\readChunk().
| MediaWiki\Import\ImportStringSource::isSeekable | ( | ) |
Implements MediaWiki\Import\ImportSource.
Definition at line 51 of file ImportStringSource.php.
| MediaWiki\Import\ImportStringSource::readChunk | ( | ) |
Implements MediaWiki\Import\ImportSource.
Definition at line 40 of file ImportStringSource.php.
References MediaWiki\Import\ImportStringSource\atEnd().
| MediaWiki\Import\ImportStringSource::seek | ( | int | $offset | ) |
| int | $offset |
Implements MediaWiki\Import\ImportSource.
Definition at line 59 of file ImportStringSource.php.