MediaWiki REL1_35
ImportStringSource Class Reference

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

Inheritance diagram for ImportStringSource:
Collaboration diagram for ImportStringSource:

Public Member Functions

 __construct ( $string)
 
 atEnd ()
 
 readChunk ()
 

Private Attributes

bool $mRead
 
string $mString
 

Detailed Description

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

This class is ineffecient, 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 52 of file ImportStringSource.php.

References $mRead.

Referenced by readChunk().

◆ readChunk()

ImportStringSource::readChunk ( )
Returns
bool|string

Implements ImportSource.

Definition at line 59 of file ImportStringSource.php.

References $mString, and atEnd().

Member Data Documentation

◆ $mRead

bool ImportStringSource::$mRead
private

Definition at line 39 of file ImportStringSource.php.

Referenced by atEnd().

◆ $mString

string ImportStringSource::$mString
private

Definition at line 36 of file ImportStringSource.php.

Referenced by readChunk().


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