MediaWiki REL1_34
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 ImportSource[] $sourceRegistrations = []
 

Private Attributes

string $mBuffer
 
int $mPosition
 
ImportSource $mSource
 

Detailed Description

This is a horrible hack used to keep source compatibility.

Definition at line 31 of file UploadSourceAdapter.php.

Member Function Documentation

◆ registerSource()

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().

◆ stream_eof()

UploadSourceAdapter::stream_eof ( )
Returns
bool

Definition at line 123 of file UploadSourceAdapter.php.

◆ stream_open()

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

Definition at line 63 of file UploadSourceAdapter.php.

References $path.

◆ stream_read()

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

Definition at line 80 of file UploadSourceAdapter.php.

◆ stream_tell()

UploadSourceAdapter::stream_tell ( )
Returns
int

Definition at line 116 of file UploadSourceAdapter.php.

References $mPosition.

◆ stream_write()

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

Definition at line 109 of file UploadSourceAdapter.php.

◆ url_stat()

UploadSourceAdapter::url_stat ( )
Returns
int[]

Definition at line 130 of file UploadSourceAdapter.php.

Member Data Documentation

◆ $mBuffer

string UploadSourceAdapter::$mBuffer
private

Definition at line 39 of file UploadSourceAdapter.php.

◆ $mPosition

int UploadSourceAdapter::$mPosition
private

Definition at line 42 of file UploadSourceAdapter.php.

Referenced by stream_tell().

◆ $mSource

ImportSource UploadSourceAdapter::$mSource
private

Definition at line 36 of file UploadSourceAdapter.php.

◆ $sourceRegistrations

ImportSource [] UploadSourceAdapter::$sourceRegistrations = []
static

Definition at line 33 of file UploadSourceAdapter.php.


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