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 () | |
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 35 of file ImportStreamSource.php.
ImportStreamSource::__construct | ( | $handle | ) |
resource | $handle |
Definition at line 42 of file ImportStreamSource.php.
ImportStreamSource::atEnd | ( | ) |
ImportStreamSource::isSeekable | ( | ) |
|
static |
string | $filename |
Definition at line 79 of file ImportStreamSource.php.
References $file, StatusValue\newFatal(), and StatusValue\newGood().
Referenced by newFromUpload().
|
static |
string | $interwiki | |
string | $page | |
bool | $history | |
bool | $templates | |
int | $pageLinkDepth |
Definition at line 169 of file ImportStreamSource.php.
References StatusValue\newFatal(), newFromURL(), and wfAppendQuery().
Referenced by ApiImport\execute().
|
static |
string | $fieldname |
Definition at line 93 of file ImportStreamSource.php.
References StatusValue\newFatal(), and newFromFile().
Referenced by ApiImport\execute().
|
static |
string | $url | |
string | $method |
Definition at line 133 of file ImportStreamSource.php.
References $file, StatusValue\newFatal(), StatusValue\newGood(), and wfDebug().
Referenced by newFromInterwiki().
ImportStreamSource::readChunk | ( | ) |
ImportStreamSource::seek | ( | int | $offset | ) |
int | $offset |
Implements ImportSource.
Definition at line 71 of file ImportStreamSource.php.