MediaWiki  1.30.0
UploadFromFile Class Reference

Implements regular file uploads. More...

Inheritance diagram for UploadFromFile:
Collaboration diagram for UploadFromFile:

Public Member Functions

 getSourceType ()
 
 initialize ( $name, $webRequestUpload)
 Initialize from a filename and a WebRequestUpload. More...
 
 initializeFromRequest (&$request)
 
 verifyUpload ()
 

Static Public Member Functions

static isValidRequest ( $request)
 

Protected Attributes

WebRequestUpload $mUpload = null
 

Detailed Description

Implements regular file uploads.

Author
Bryan Tong Minh

Definition at line 30 of file UploadFromFile.php.

Member Function Documentation

◆ getSourceType()

UploadFromFile::getSourceType ( )
Returns
string

Definition at line 73 of file UploadFromFile.php.

Referenced by verifyUpload().

◆ initialize()

UploadFromFile::initialize (   $name,
  $webRequestUpload 
)

Initialize from a filename and a WebRequestUpload.

Parameters
string$name
WebRequestUpload$webRequestUpload

Definition at line 54 of file UploadFromFile.php.

References $name.

Referenced by initializeFromRequest().

◆ initializeFromRequest()

UploadFromFile::initializeFromRequest ( $request)
Parameters
WebRequest&$request

Definition at line 39 of file UploadFromFile.php.

References $request, and initialize().

◆ isValidRequest()

static UploadFromFile::isValidRequest (   $request)
static
Parameters
WebRequest$request
Returns
bool

Definition at line 64 of file UploadFromFile.php.

◆ verifyUpload()

UploadFromFile::verifyUpload ( )
Returns
array

Definition at line 80 of file UploadFromFile.php.

References getSourceType().

Referenced by UploadFromChunks\concatenateChunks().

Member Data Documentation

◆ $mUpload

WebRequestUpload UploadFromFile::$mUpload = null
protected

Definition at line 34 of file UploadFromFile.php.


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