MediaWiki
REL1_40
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
}
wfMessage
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Definition
GlobalFunctions.php:893
MediaTransformError
Basic media transform error class.
Definition
MediaTransformError.php:31
TransformParameterError
Shortcut class for parameter validation errors.
Definition
TransformParameterError.php:30
TransformParameterError\getHttpStatusCode
getHttpStatusCode()
Definition
TransformParameterError.php:45
TransformParameterError\__construct
__construct( $params)
Definition
TransformParameterError.php:37
includes
media
TransformParameterError.php
Generated on Thu Jun 27 2024 14:03:27 for MediaWiki by
1.10.0