MediaWiki
REL1_35
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:1220
MediaTransformError
Basic media transform error class.
Definition
MediaTransformError.php:31
TransformParameterError
Shortcut class for parameter validation errors.
Definition
TransformParameterError.php:30
TransformParameterError\getHttpStatusCode
getHttpStatusCode()
Stable to override.
Definition
TransformParameterError.php:45
TransformParameterError\__construct
__construct( $params)
Stable to call.
Definition
TransformParameterError.php:37
includes
media
TransformParameterError.php
Generated on Sat Apr 6 2024 00:07:32 for MediaWiki by
1.9.8