MediaWiki  REL1_19
ImportStreamSource Class Reference

List of all members.

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')

Detailed Description

Todo:
document (e.g.

one-sentence class description).

Definition at line 1497 of file Import.php.


Constructor & Destructor Documentation

Definition at line 1498 of file Import.php.


Member Function Documentation

Returns:
bool

Definition at line 1505 of file Import.php.

static ImportStreamSource::newFromFile ( filename) [static]
Parameters:
$filenamestring
Returns:
Status

Definition at line 1520 of file Import.php.

References $file, Status\newFatal(), Status\newGood(), wfRestoreWarnings(), and wfSuppressWarnings().

Referenced by newFromUpload().

Here is the call graph for this function:

Here is the caller graph for this function:

static ImportStreamSource::newFromInterwiki ( interwiki,
page,
history = false,
templates = false,
pageLinkDepth = 0 
) [static]
Parameters:
$interwiki
$page
$historybool
$templatesbool
$pageLinkDepthint
Returns:
Status

Definition at line 1593 of file Import.php.

References $page, $url, Status\newFatal(), Title\newFromText(), and newFromURL().

Referenced by SpecialImport\doImport(), and ApiImport\execute().

Here is the call graph for this function:

Here is the caller graph for this function:

static ImportStreamSource::newFromUpload ( fieldname = "xmlimport") [static]
Parameters:
$fieldnamestring
Returns:
Status

Definition at line 1534 of file Import.php.

References $fname, Status\newFatal(), and newFromFile().

Referenced by SpecialImport\doImport(), and ApiImport\execute().

Here is the call graph for this function:

Here is the caller graph for this function:

static ImportStreamSource::newFromURL ( url,
method = 'GET' 
) [static]
Parameters:
$url
$methodstring
Returns:
Status

Definition at line 1567 of file Import.php.

References $file, $url, Status\newFatal(), Status\newGood(), Http\request(), and wfDebug().

Referenced by newFromInterwiki().

Here is the call graph for this function:

Here is the caller graph for this function:

Returns:
string

Definition at line 1512 of file Import.php.


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