MediaWiki
REL1_34
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
}
wfMessage
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Definition
GlobalFunctions.php:1263
MediaTransformError
Basic media transform error class.
Definition
MediaTransformError.php:29
TransformParameterError
Shortcut class for parameter validation errors.
Definition
TransformParameterError.php:29
TransformParameterError\getHttpStatusCode
getHttpStatusCode()
Definition
TransformParameterError.php:38
TransformParameterError\__construct
__construct( $params)
Definition
TransformParameterError.php:30
includes
media
TransformParameterError.php
Generated on Mon Nov 25 2024 16:05:30 for MediaWiki by
1.10.0