MediaWiki
REL1_41
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:903
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 Wed Nov 27 2024 07:24:06 for MediaWiki by
1.10.0