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


Public Member Functions | |
| __construct ($handle) | |
| atEnd () | |
| readChunk () | |
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 31 of file ImportStreamSource.php.
| ImportStreamSource::__construct | ( | $handle | ) |
Definition at line 32 of file ImportStreamSource.php.
| ImportStreamSource::atEnd | ( | ) |
|
static |
| string | $filename |
Definition at line 54 of file ImportStreamSource.php.
References Status\newFatal(), and Status\newGood().
Referenced by newFromUpload(), and ImportLinkCacheIntegrationTest\setUp().
|
static |
| string | $interwiki | |
| string | $page | |
| bool | $history | |
| bool | $templates | |
| int | $pageLinkDepth |
Definition at line 132 of file ImportStreamSource.php.
References $link, $page, $params, Interwiki\fetch(), Status\newFatal(), newFromURL(), and wfAppendQuery().
Referenced by SpecialImport\doImport(), and ApiImport\execute().
|
static |
| string | $fieldname |
Definition at line 68 of file ImportStreamSource.php.
References $fname, Status\newFatal(), and newFromFile().
Referenced by SpecialImport\doImport(), and ApiImport\execute().
|
static |
| string | $url | |
| string | $method |
Definition at line 106 of file ImportStreamSource.php.
References Status\newFatal(), Status\newGood(), Http\request(), and wfDebug().
Referenced by newFromInterwiki().
| ImportStreamSource::readChunk | ( | ) |