MediaWiki
REL1_40
FauxRequestUpload.php
Go to the documentation of this file.
1
<?php
23
namespace
MediaWiki\Request
;
24
31
class
FauxRequestUpload
extends
WebRequestUpload
{
32
41
public
function
__construct
( $data,
$request
, $key ) {
42
$this->request =
$request
;
43
$this->doesExist = isset( $data[$key] );
44
if
( $this->doesExist ) {
45
$this->fileInfo = $data[$key];
46
}
47
}
48
49
}
50
51
class_alias( FauxRequestUpload::class,
'FauxRequestUpload'
);
MediaWiki\Request\FauxRequestUpload
Object to fake the $_FILES array.
Definition
FauxRequestUpload.php:31
MediaWiki\Request\FauxRequestUpload\__construct
__construct( $data, $request, $key)
Constructor.
Definition
FauxRequestUpload.php:41
MediaWiki\Request\WebRequestUpload
Object to access the $_FILES array.
Definition
WebRequestUpload.php:37
MediaWiki\Request\WebRequestUpload\$request
WebRequest $request
Definition
WebRequestUpload.php:41
MediaWiki\Request
Definition
ContentSecurityPolicy.php:28
includes
Request
FauxRequestUpload.php
Generated on Thu Jun 27 2024 14:03:50 for MediaWiki by
1.10.0