當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ezcGraphException類代碼示例

本文整理匯總了PHP中ezcGraphException的典型用法代碼示例。如果您正苦於以下問題:PHP ezcGraphException類的具體用法?PHP ezcGraphException怎麽用?PHP ezcGraphException使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了ezcGraphException類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * Constructor
  * 
  * @param int $type
  * @return void
  * @ignore
  */
 public function __construct($type)
 {
     $typeName = array(1 => 'GIF', 2 => 'Jpeg', 3 => 'PNG', 4 => 'SWF', 5 => 'PSD', 6 => 'BMP', 7 => 'TIFF (intel)', 8 => 'TIFF (motorola)', 9 => 'JPC', 10 => 'JP2', 11 => 'JPX', 12 => 'JB2', 13 => 'SWC', 14 => 'IFF', 15 => 'WBMP', 16 => 'XBM');
     if (isset($typeName[$type])) {
         $type = $typeName[$type];
     } else {
         $type = 'Unknown';
     }
     parent::__construct("Unsupported image format '{$type}'.");
 }
開發者ID:Adeelgill,項目名稱:livehelperchat,代碼行數:17,代碼來源:unsupported_image_type.php

示例2: __construct

 /**
  * Constructor
  * 
  * @param int $type
  * @return void
  * @ignore
  */
 public function __construct($type)
 {
     $chartTypeNames = array(ezcGraph::PIE => 'Pie', ezcGraph::LINE => 'Line', ezcGraph::BAR => 'Bar');
     if (isset($chartTypeNames[$type])) {
         $chartTypeName = $chartTypeNames[$type];
     } else {
         $chartTypeName = 'Unknown';
     }
     parent::__construct("Invalid data set display type '{$type}' ('{$chartTypeName}') for current chart.");
 }
開發者ID:gbleydon,項目名稱:mahara-survey,代碼行數:17,代碼來源:invalid_display_type.php

示例3: __construct

 /**
  * Constructor
  * 
  * @param string $file
  * @param string $extension
  * @return void
  * @ignore
  */
 public function __construct($file, $extension)
 {
     parent::__construct("Unknown font type '{$extension}' of file '{$file}'.");
 }
開發者ID:mediasadc,項目名稱:alba,代碼行數:12,代碼來源:font_type.php

示例4: __construct

 /**
  * Constructor
  * 
  * @param int $rows
  * @param int $columns
  * @param int $dRows
  * @param int $dColumns
  * @return void
  * @ignore
  */
 public function __construct($rows, $columns, $dRows, $dColumns)
 {
     parent::__construct("Matrix '{$dRows}, {$dColumns}' is incompatible with matrix '{$rows}, {$columns}' for requested operation.");
 }
開發者ID:ODM-Matt,項目名稱:phpUnderControl-UNMAINTAINED,代碼行數:14,代碼來源:invalid_dimensions.php

示例5: __construct

 /**
  * Constructor
  * 
  * @param mixed $driver
  * @param string $accepted
  * @return void
  * @ignore
  */
 public function __construct($driver, $accepted)
 {
     $driverClass = get_class($driver);
     parent::__construct("Incompatible driver used. Driver '{$driverClass}' is not an instance of '{$accepted}'.");
 }
開發者ID:ODM-Matt,項目名稱:phpUnderControl-UNMAINTAINED,代碼行數:13,代碼來源:incompatible_driver.php

示例6: __construct

 /**
  * Constructor
  * 
  * @return void
  * @ignore
  */
 public function __construct()
 {
     parent::__construct("Flash can only read JPEGs and PNGs.");
 }
開發者ID:jordanmanning,項目名稱:ezpublish,代碼行數:10,代碼來源:flash_bitmap_type.php

示例7: __construct

 /**
  * Constructor
  * 
  * @param mixed $definition
  * @return void
  * @ignore
  */
 public function __construct($definition)
 {
     parent::__construct("Unknown color definition '{$definition}'.");
 }
開發者ID:broschb,項目名稱:cyclebrain,代碼行數:11,代碼來源:unknown_color_definition.php

示例8: __construct

 /**
  * Constructor
  * 
  * @param mixed $value
  * @return void
  * @ignore
  */
 public function __construct($value)
 {
     $type = gettype($value);
     parent::__construct("Could not parse date '{$value}' of type '{$type}'.");
 }
開發者ID:Tarendai,項目名稱:spring-website,代碼行數:12,代碼來源:date_parsing.php

示例9: __construct

 /**
  * Constructor
  * 
  * @param string $message
  * @return void
  * @ignore
  */
 public function __construct($message)
 {
     parent::__construct("You provided unusable data: '{$message}'.");
 }
開發者ID:mediasadc,項目名稱:alba,代碼行數:11,代碼來源:invalid_data.php

示例10: __construct

 /**
  * Constructor
  * 
  * @param ezcGraphChart $chart
  * @return void
  * @ignore
  */
 public function __construct($chart)
 {
     parent::__construct("Chart is not yet rendered.");
 }
開發者ID:Adeelgill,項目名稱:livehelperchat,代碼行數:11,代碼來源:not_rendered.php

示例11: __construct

 /**
  * Constructor
  *
  * @param string $id
  * @return void
  * @ignore
  */
 public function __construct($id)
 {
     parent::__construct("Could not find element with id '{$id}' in SVG document.");
 }
開發者ID:ODM-Matt,項目名稱:phpUnderControl-UNMAINTAINED,代碼行數:11,代碼來源:invalid_id.php

示例12: __construct

 /**
  * Constructor
  * 
  * @param string $name
  * @return void
  * @ignore
  */
 public function __construct($name)
 {
     parent::__construct("No chart element with name '{$name}' found.");
 }
開發者ID:jose-martins,項目名稱:glpi,代碼行數:11,代碼來源:no_such_element.php

示例13: __construct

 /**
  * Constructor
  * 
  * @param string $message
  * @return void
  * @ignore
  */
 public function __construct($message)
 {
     parent::__construct("Invalid step size on numeric axis: {$message}.");
 }
開發者ID:Tarendai,項目名稱:spring-website,代碼行數:11,代碼來源:invalid_step_size.php

示例14: __construct

 /**
  * Constructor
  * 
  * @param string $name
  * @return void
  * @ignore
  */
 public function __construct($name)
 {
     parent::__construct("No data with name '{$name}' found.");
 }
開發者ID:jordanmanning,項目名稱:ezpublish,代碼行數:11,代碼來源:no_such_data.php

示例15: __construct

 /**
  * Constructor
  * 
  * @param mixed $value
  * @return void
  * @ignore
  */
 public function __construct($value)
 {
     $type = gettype($value);
     parent::__construct("The array dataset can only use arrays and iterators, but you supplied '{$type}'.");
 }
開發者ID:ODM-Matt,項目名稱:phpUnderControl-UNMAINTAINED,代碼行數:12,代碼來源:invalid_data_source.php


注:本文中的ezcGraphException類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。