MediaWiki REL1_33
BitmapHandler_ClientOnly.php
Go to the documentation of this file.
1<?php
32// phpcs:ignore Squiz.Classes.ValidClassName.NotCamelCaps
34
40 public function normaliseParams( $image, &$params ) {
42 }
43
52 function doTransform( $image, $dstPath, $dstUrl, $params, $flags = 0 ) {
53 if ( !$this->normaliseParams( $image, $params ) ) {
54 return new TransformParameterError( $params );
55 }
56
57 return new ThumbnailImage( $image, $image->getUrl(), $image->getLocalRefPath(), $params );
58 }
59}
Handler for bitmap images that will be resized by clients.
doTransform( $image, $dstPath, $dstUrl, $params, $flags=0)
Generic handler for bitmap images.
normaliseParams( $image, &$params)
Media transform output for images.
Shortcut class for parameter validation errors.
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that When $user is not it can be in the form of< username >< more info > e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output modifiable modifiable after all normalizations have been except for the $wgMaxImageArea check $image
Definition hooks.txt:886
$params