Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7423106
FauxRequestUpload.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
773 B
Referenced Files
None
Subscribers
None
FauxRequestUpload.php
View Options
<?php
/**
* Object to access a fake $_FILES array for testing purpose
*
* @license GPL-2.0-or-later
* @file
*/
namespace
MediaWiki\Request
;
/**
* Object to fake the $_FILES array
*
* @ingroup HTTP
* @since 1.37
*/
class
FauxRequestUpload
extends
WebRequestUpload
{
/**
* Constructor. Should only be called by MediaWiki\Request\FauxRequest
*
* @param array $data Array of *non*-urlencoded key => value pairs, the
* fake (whole) FILES values
* @param FauxRequest $request The associated faux request
* @param string $key name of upload param
*/
public
function
__construct
(
$data
,
$request
,
$key
)
{
$this
->
request
=
$request
;
$this
->
doesExist
=
isset
(
$data
[
$key
]
);
if
(
$this
->
doesExist
)
{
$this
->
fileInfo
=
$data
[
$key
];
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 06:21 (1 d, 5 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
61/72/f1c924ad65771f57cc8c97104932
Default Alt Text
FauxRequestUpload.php (773 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment