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