MediaWiki  REL1_23
Bitmap_ClientOnly.php
Go to the documentation of this file.
00001 <?php
00032 class BitmapHandler_ClientOnly extends BitmapHandler {
00038     function normaliseParams( $image, &$params ) {
00039         return ImageHandler::normaliseParams( $image, $params );
00040     }
00041 
00050     function doTransform( $image, $dstPath, $dstUrl, $params, $flags = 0 ) {
00051         if ( !$this->normaliseParams( $image, $params ) ) {
00052             return new TransformParameterError( $params );
00053         }
00054 
00055         return new ThumbnailImage( $image, $image->getURL(), $image->getLocalRefPath(), $params );
00056     }
00057 }