MediaWiki  1.23.2
ImportStreamSource Class Reference

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 1630 of file Import.php.

Constructor & Destructor Documentation

◆ __construct()

ImportStreamSource::__construct (   $handle)

Definition at line 1631 of file Import.php.

Member Function Documentation

◆ atEnd()

ImportStreamSource::atEnd ( )
Returns
bool

Definition at line 1638 of file Import.php.

◆ newFromFile()

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

Definition at line 1653 of file Import.php.

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

Referenced by newFromUpload().

◆ newFromInterwiki()

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

Definition at line 1726 of file Import.php.

References $link, $params, array(), Status\newFatal(), Title\newFromText(), and newFromURL().

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

◆ newFromUpload()

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

Definition at line 1667 of file Import.php.

References $fname, $upload, file, form, in, Status\newFatal(), newFromFile(), only, php, and that.

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

◆ newFromURL()

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

Definition at line 1700 of file Import.php.

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

Referenced by newFromInterwiki().

◆ readChunk()

ImportStreamSource::readChunk ( )
Returns
string

Definition at line 1645 of file Import.php.


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