Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4088585
TransformParameterError.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
637 B
Referenced Files
None
Subscribers
None
TransformParameterError.php
View Options
<?php
/**
* Base class for the output of file transformation methods.
*
* @license GPL-2.0-or-later
* @file
* @ingroup Media
*/
/**
* Shortcut class for parameter validation errors
*
* @newable
* @ingroup Media
*/
class
TransformParameterError
extends
MediaTransformError
{
/**
* @stable to call
*
* @param array $params
*/
public
function
__construct
(
$params
)
{
parent
::
__construct
(
'thumbnail_error'
,
max
(
$params
[
'width'
]
??
0
,
120
),
max
(
$params
[
'height'
]
??
0
,
120
),
wfMessage
(
'thumbnail_invalid_params'
)
);
}
/** @inheritDoc */
public
function
getHttpStatusCode
()
{
return
400
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 18 2026, 10:03 (6 w, 19 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
89/9b/280fd4a381d021bca57391ac0cab
Default Alt Text
TransformParameterError.php (637 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment