MediaWiki
REL1_37
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:1182
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 Fri Apr 5 2024 23:40:35 for MediaWiki by
1.9.8