MediaWiki
REL1_41
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
54
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:36
MediaWiki\Request\WebRequestUpload\$request
WebRequest $request
Definition
WebRequestUpload.php:40
MediaWiki\Request
Definition
ContentSecurityPolicy.php:21
includes
Request
FauxRequestUpload.php
Generated on Wed Nov 27 2024 07:24:26 for MediaWiki by
1.10.0