| [ Index ] |
PHP Cross Reference of MantisBT |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * File containing the ezcGraphGdDriverUnsupportedImageTypeException class 4 * 5 * @package Graph 6 * @version 1.5 7 * @copyright Copyright (C) 2005-2009 eZ Systems AS. All rights reserved. 8 * @license http://ez.no/licenses/new_bsd New BSD License 9 */ 10 /** 11 * Exception thrown if the image type is not supported and therefore could not 12 * be used in the gd driver. 13 * 14 * @package Graph 15 * @version 1.5 16 */ 17 class ezcGraphGdDriverUnsupportedImageTypeException extends ezcGraphException 18 { 19 /** 20 * Constructor 21 * 22 * @param int $type 23 * @return void 24 * @ignore 25 */ 26 public function __construct( $type ) 27 { 28 $typeName = array( 29 1 => 'GIF', 30 2 => 'Jpeg', 31 3 => 'PNG', 32 4 => 'SWF', 33 5 => 'PSD', 34 6 => 'BMP', 35 7 => 'TIFF (intel)', 36 8 => 'TIFF (motorola)', 37 9 => 'JPC', 38 10 => 'JP2', 39 11 => 'JPX', 40 12 => 'JB2', 41 13 => 'SWC', 42 14 => 'IFF', 43 15 => 'WBMP', 44 16 => 'XBM', 45 46 ); 47 48 if ( isset( $typeName[$type] ) ) 49 { 50 $type = $typeName[$type]; 51 } 52 else 53 { 54 $type = 'Unknown'; 55 } 56 57 parent::__construct( "Unsupported image format '{$type}'." ); 58 } 59 } 60 61 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Jul 28 15:48:31 2011 | Cross-referenced by PHPXref 0.7 |