MediaWiki  REL1_24
Bitmap_ClientOnly.php
Go to the documentation of this file.
00001 <?php
00032 // @codingStandardsIgnoreStart Squiz.Classes.ValidClassName.NotCamelCaps
00033 class BitmapHandler_ClientOnly extends BitmapHandler {
00034     // @codingStandardsIgnoreEnd
00035 
00041     function normaliseParams( $image, &$params ) {
00042         return ImageHandler::normaliseParams( $image, $params );
00043     }
00044 
00053     function doTransform( $image, $dstPath, $dstUrl, $params, $flags = 0 ) {
00054         if ( !$this->normaliseParams( $image, $params ) ) {
00055             return new TransformParameterError( $params );
00056         }
00057 
00058         return new ThumbnailImage( $image, $image->getURL(), $image->getLocalRefPath(), $params );
00059     }
00060 }