MediaWiki  1.28.0
UploadSourceAdapter Class Reference

This is a horrible hack used to keep source compatibility. More...

Collaboration diagram for UploadSourceAdapter:

Public Member Functions

 stream_eof ()
 
 stream_open ($path, $mode, $options, &$opened_path)
 
 stream_read ($count)
 
 stream_tell ()
 
 stream_write ($data)
 
 url_stat ()
 

Static Public Member Functions

static registerSource (ImportSource $source)
 

Static Public Attributes

static array $sourceRegistrations = []
 

Private Attributes

string $mBuffer
 
int $mPosition
 
string $mSource
 

Detailed Description

This is a horrible hack used to keep source compatibility.

Definition at line 31 of file UploadSourceAdapter.php.

Member Function Documentation

static UploadSourceAdapter::registerSource ( ImportSource  $source)
static
Parameters
ImportSource$source
Returns
string

Definition at line 48 of file UploadSourceAdapter.php.

References $source, and wfRandomString().

Referenced by WikiImporter\__construct().

UploadSourceAdapter::stream_eof ( )
Returns
bool

Definition at line 123 of file UploadSourceAdapter.php.

UploadSourceAdapter::stream_open (   $path,
  $mode,
  $options,
$opened_path 
)
Parameters
string$path
string$mode
array$options
string$opened_path
Returns
bool

Definition at line 63 of file UploadSourceAdapter.php.

References $path.

UploadSourceAdapter::stream_read (   $count)
Parameters
int$count
Returns
string

Definition at line 80 of file UploadSourceAdapter.php.

References $count.

UploadSourceAdapter::stream_tell ( )
Returns
mixed

Definition at line 116 of file UploadSourceAdapter.php.

References $mPosition.

UploadSourceAdapter::stream_write (   $data)
Parameters
string$data
Returns
bool

Definition at line 109 of file UploadSourceAdapter.php.

UploadSourceAdapter::url_stat ( )
Returns
array

Definition at line 130 of file UploadSourceAdapter.php.

Member Data Documentation

string UploadSourceAdapter::$mBuffer
private

Definition at line 39 of file UploadSourceAdapter.php.

int UploadSourceAdapter::$mPosition
private

Definition at line 42 of file UploadSourceAdapter.php.

Referenced by stream_tell().

string UploadSourceAdapter::$mSource
private

Definition at line 36 of file UploadSourceAdapter.php.

array UploadSourceAdapter::$sourceRegistrations = []
static

Definition at line 33 of file UploadSourceAdapter.php.


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