MediaWiki master
ImportStringSource Class Reference

Used for importing XML dumps where the content of the dump is in a string. More...

Inherits ImportSource.

Collaboration diagram for ImportStringSource:

Public Member Functions

 __construct ( $string)
 
 atEnd ()
 
 isSeekable ()
 
 readChunk ()
 
 seek (int $offset)
 

Detailed Description

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 34 of file ImportStringSource.php.

Constructor & Destructor Documentation

◆ __construct()

ImportStringSource::__construct ( $string)
Parameters
string$string

Definition at line 44 of file ImportStringSource.php.

Member Function Documentation

◆ atEnd()

ImportStringSource::atEnd ( )
Returns
bool

Implements ImportSource.

Definition at line 51 of file ImportStringSource.php.

Referenced by readChunk().

◆ isSeekable()

ImportStringSource::isSeekable ( )
Returns
bool

Implements ImportSource.

Definition at line 69 of file ImportStringSource.php.

◆ readChunk()

ImportStringSource::readChunk ( )
Returns
bool|string

Implements ImportSource.

Definition at line 58 of file ImportStringSource.php.

References atEnd().

◆ seek()

ImportStringSource::seek ( int $offset)
Parameters
int$offset
Returns
int

Implements ImportSource.

Definition at line 77 of file ImportStringSource.php.


The documentation for this class was generated from the following file: