| [ Index ] |
PHP Cross Reference of MantisBT |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * File containing the ezcGraphInvalidDisplayTypeException 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 when an unsupported data type is set for the current chart. 12 * 13 * @package Graph 14 * @version 1.5 15 */ 16 class ezcGraphInvalidDisplayTypeException extends ezcGraphException 17 { 18 /** 19 * Constructor 20 * 21 * @param int $type 22 * @return void 23 * @ignore 24 */ 25 public function __construct( $type ) 26 { 27 $chartTypeNames = array( 28 ezcGraph::PIE => 'Pie', 29 ezcGraph::LINE => 'Line', 30 ezcGraph::BAR => 'Bar', 31 ); 32 33 if ( isset( $chartTypeNames[$type] ) ) 34 { 35 $chartTypeName = $chartTypeNames[$type]; 36 } 37 else 38 { 39 $chartTypeName = 'Unknown'; 40 } 41 42 parent::__construct( "Invalid data set display type '$type' ('$chartTypeName') for current chart." ); 43 } 44 } 45 46 ?>
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 |