MediaWiki
1.34.0
TransformParameterError.php
Go to the documentation of this file.
1
<?php
29
class
TransformParameterError
extends
MediaTransformError
{
30
function
__construct
( $params ) {
31
parent::__construct(
'thumbnail_error'
,
32
max( $params[
'width'
] ?? 0, 120 ),
33
max( $params[
'height'
] ?? 0, 120 ),
34
wfMessage
(
'thumbnail_invalid_params'
)
35
);
36
}
37
38
function
getHttpStatusCode
() {
39
return
400;
40
}
41
}
MediaTransformError
Basic media transform error class.
Definition:
MediaTransformError.php:29
TransformParameterError\getHttpStatusCode
getHttpStatusCode()
Definition:
TransformParameterError.php:38
wfMessage
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Definition:
GlobalFunctions.php:1264
TransformParameterError\__construct
__construct( $params)
Definition:
TransformParameterError.php:30
TransformParameterError
Shortcut class for parameter validation errors.
Definition:
TransformParameterError.php:29
includes
media
TransformParameterError.php
Generated on Thu Dec 19 2019 14:54:37 for MediaWiki by
1.8.16