|
MediaWiki master
|
Imports a XML dump from a file (either from file upload, files on disk, or HTTP) More...
Inherits MediaWiki\Import\ImportSource.

Public Member Functions | |
| __construct ( $handle) | |
| atEnd () | |
| isSeekable () | |
| readChunk () | |
| seek (int $offset) | |
Static Public Member Functions | |
| static | newFromFile ( $filename) |
| static | newFromInterwiki ( $interwiki, $page, $history=false, $templates=false, $pageLinkDepth=0) |
| static | newFromUpload ( $fieldname="xmlimport") |
| static | newFromURL ( $url, $method='GET') |
Imports a XML dump from a file (either from file upload, files on disk, or HTTP)
Definition at line 23 of file ImportStreamSource.php.
| MediaWiki\Import\ImportStreamSource::__construct | ( | $handle | ) |
| resource | $handle |
Definition at line 30 of file ImportStreamSource.php.
| MediaWiki\Import\ImportStreamSource::atEnd | ( | ) |
Implements MediaWiki\Import\ImportSource.
Definition at line 37 of file ImportStreamSource.php.
| MediaWiki\Import\ImportStreamSource::isSeekable | ( | ) |
Implements MediaWiki\Import\ImportSource.
Definition at line 51 of file ImportStreamSource.php.
|
static |
| string | $filename |
Definition at line 67 of file ImportStreamSource.php.
Referenced by MediaWiki\Import\ImportStreamSource\newFromUpload().
|
static |
| string | $interwiki | |
| string | $page | |
| bool | $history | |
| bool | $templates | |
| int | $pageLinkDepth |
Definition at line 156 of file ImportStreamSource.php.
References $url, MediaWiki\MediaWikiServices\getInstance(), MediaWiki\Import\ImportStreamSource\newFromURL(), and wfAppendQuery().
Referenced by MediaWiki\Api\ApiImport\execute().
|
static |
| string | $fieldname |
Definition at line 80 of file ImportStreamSource.php.
References MediaWiki\Import\ImportStreamSource\newFromFile().
Referenced by MediaWiki\Api\ApiImport\execute().
|
static |
| string | $url | |
| string | $method |
Definition at line 120 of file ImportStreamSource.php.
References $url, MediaWiki\MediaWikiServices\getInstance(), MediaWiki\MainConfigNames\HTTPImportTimeout, and wfDebug().
Referenced by MediaWiki\Import\ImportStreamSource\newFromInterwiki().
| MediaWiki\Import\ImportStreamSource::readChunk | ( | ) |
Implements MediaWiki\Import\ImportSource.
Definition at line 44 of file ImportStreamSource.php.
| MediaWiki\Import\ImportStreamSource::seek | ( | int | $offset | ) |
| int | $offset |
Implements MediaWiki\Import\ImportSource.
Definition at line 59 of file ImportStreamSource.php.