MediaWiki REL1_28
|
Object to access the $_FILES array. More...
Public Member Functions | |
__construct ( $request, $key) | |
Constructor. | |
exists () | |
Return whether a file with this name was uploaded. | |
getError () | |
Return the upload error. | |
getName () | |
Return the original filename of the uploaded file. | |
getSize () | |
Return the file size of the uploaded file. | |
getTempName () | |
Return the path to the temporary file. | |
isIniSizeOverflow () | |
Returns whether this upload failed because of overflow of a maximum set in php.ini. | |
Protected Attributes | |
$doesExist | |
$fileInfo | |
$request | |
Object to access the $_FILES array.
Definition at line 28 of file WebRequestUpload.php.
WebRequestUpload::__construct | ( | $request, | |
$key | |||
) |
Constructor.
Should only be called by WebRequest
WebRequest | $request | The associated request |
string | $key | Key in $_FILES array (name of form field) |
Definition at line 39 of file WebRequestUpload.php.
WebRequestUpload::exists | ( | ) |
Return whether a file with this name was uploaded.
Definition at line 52 of file WebRequestUpload.php.
References $doesExist.
Referenced by getError(), getName(), getSize(), and getTempName().
WebRequestUpload::getError | ( | ) |
Return the upload error.
See link for explanation http://www.php.net/manual/en/features.file-upload.errors.php
Definition at line 109 of file WebRequestUpload.php.
References exists().
Referenced by isIniSizeOverflow().
WebRequestUpload::getName | ( | ) |
Return the original filename of the uploaded file.
Definition at line 61 of file WebRequestUpload.php.
References $name, $wgContLang, exists(), global, and wfDebug().
WebRequestUpload::getSize | ( | ) |
Return the file size of the uploaded file.
Definition at line 82 of file WebRequestUpload.php.
References exists().
WebRequestUpload::getTempName | ( | ) |
Return the path to the temporary file.
Definition at line 95 of file WebRequestUpload.php.
References exists().
WebRequestUpload::isIniSizeOverflow | ( | ) |
Returns whether this upload failed because of overflow of a maximum set in php.ini.
Definition at line 123 of file WebRequestUpload.php.
References getError(), request, and wfShorthandToInteger().
|
protected |
Definition at line 30 of file WebRequestUpload.php.
Referenced by exists().
|
protected |
Definition at line 31 of file WebRequestUpload.php.
|
protected |
Definition at line 29 of file WebRequestUpload.php.
Referenced by __construct().