MediaWiki  REL1_19
Bitmap_ClientOnly.php
Go to the documentation of this file.
00001 <?php
00017 class BitmapHandler_ClientOnly extends BitmapHandler {
00018 
00024         function normaliseParams( $image, &$params ) {
00025                 return ImageHandler::normaliseParams( $image, $params );
00026         }
00027 
00036         function doTransform( $image, $dstPath, $dstUrl, $params, $flags = 0 ) {
00037                 if ( !$this->normaliseParams( $image, $params ) ) {
00038                         return new TransformParameterError( $params );
00039                 }
00040                 return new ThumbnailImage( $image, $image->getURL(), $params['width'], 
00041                         $params['height'], $image->getLocalRefPath() );
00042         }
00043 }