MediaWiki
master
TransformParameterError.php
Go to the documentation of this file.
1
<?php
30
class
TransformParameterError
extends
MediaTransformError
{
31
37
public
function
__construct
( $params ) {
38
parent::__construct(
'thumbnail_error'
,
39
max( $params[
'width'
] ?? 0, 120 ),
40
max( $params[
'height'
] ?? 0, 120 ),
41
wfMessage
(
'thumbnail_invalid_params'
)
42
);
43
}
44
45
public
function
getHttpStatusCode
() {
46
return
400;
47
}
48
}
MediaTransformError
Basic media transform error class.
Definition:
MediaTransformError.php:31
TransformParameterError\getHttpStatusCode
getHttpStatusCode()
Stable to override.
Definition:
TransformParameterError.php:45
wfMessage
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Definition:
GlobalFunctions.php:1230
TransformParameterError\__construct
__construct( $params)
Stable to call.
Definition:
TransformParameterError.php:37
TransformParameterError
Shortcut class for parameter validation errors.
Definition:
TransformParameterError.php:30
includes
media
TransformParameterError.php
Generated on Mon Jan 18 2021 23:09:09 for MediaWiki by
1.8.19