コード例 #1
0
 /**
  * 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}'.");
 }
コード例 #2
0
 /**
  * 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.");
 }
コード例 #3
0
ファイル: font_type.php プロジェクト: mediasadc/alba
 /**
  * Constructor
  * 
  * @param string $file
  * @param string $extension
  * @return void
  * @ignore
  */
 public function __construct($file, $extension)
 {
     parent::__construct("Unknown font type '{$extension}' of file '{$file}'.");
 }
コード例 #4
0
 /**
  * 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.");
 }
コード例 #5
0
 /**
  * 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}'.");
 }
コード例 #6
0
 /**
  * Constructor
  * 
  * @return void
  * @ignore
  */
 public function __construct()
 {
     parent::__construct("Flash can only read JPEGs and PNGs.");
 }
コード例 #7
0
 /**
  * Constructor
  * 
  * @param mixed $definition
  * @return void
  * @ignore
  */
 public function __construct($definition)
 {
     parent::__construct("Unknown color definition '{$definition}'.");
 }
コード例 #8
0
 /**
  * Constructor
  * 
  * @param mixed $value
  * @return void
  * @ignore
  */
 public function __construct($value)
 {
     $type = gettype($value);
     parent::__construct("Could not parse date '{$value}' of type '{$type}'.");
 }
コード例 #9
0
 /**
  * Constructor
  * 
  * @return void
  * @ignore
  */
 public function __construct()
 {
     parent::__construct("Reducement of shape failed, because it was already too small.");
 }
コード例 #10
0
ファイル: invalid_data.php プロジェクト: mediasadc/alba
 /**
  * Constructor
  * 
  * @param string $message
  * @return void
  * @ignore
  */
 public function __construct($message)
 {
     parent::__construct("You provided unusable data: '{$message}'.");
 }
コード例 #11
0
 /**
  * Constructor
  * 
  * @param ezcGraphChart $chart
  * @return void
  * @ignore
  */
 public function __construct($chart)
 {
     parent::__construct("Chart is not yet rendered.");
 }
コード例 #12
0
ファイル: invalid_keys.php プロジェクト: jose-martins/glpi
 /**
  * Constructor
  * 
  * @return void
  * @ignore
  */
 public function __construct()
 {
     parent::__construct("You can not use non numeric keys with Average datasets.");
 }
コード例 #13
0
 /**
  * Constructor
  *
  * @param string $id
  * @return void
  * @ignore
  */
 public function __construct($id)
 {
     parent::__construct("Could not find element with id '{$id}' in SVG document.");
 }
コード例 #14
0
ファイル: no_such_element.php プロジェクト: jose-martins/glpi
 /**
  * Constructor
  * 
  * @param string $name
  * @return void
  * @ignore
  */
 public function __construct($name)
 {
     parent::__construct("No chart element with name '{$name}' found.");
 }
コード例 #15
0
 /**
  * Constructor
  * 
  * @param string $message
  * @return void
  * @ignore
  */
 public function __construct($message)
 {
     parent::__construct("Invalid step size on numeric axis: {$message}.");
 }
コード例 #16
0
 /**
  * Constructor
  * 
  * @return void
  * @ignore
  */
 public function __construct()
 {
     parent::__construct("You tried to insert to many datasets.");
 }
コード例 #17
0
 /**
  * Constructor
  * 
  * @param string $name
  * @return void
  * @ignore
  */
 public function __construct($name)
 {
     parent::__construct("No data with name '{$name}' found.");
 }
コード例 #18
0
 /**
  * Constructor
  * 
  * @return void
  * @ignore
  */
 public function __construct()
 {
     parent::__construct("Bar charts do not support axis with unregular steps sizes.");
 }
コード例 #19
0
 /**
  * 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}'.");
 }
コード例 #20
0
 /**
  * Constructor
  * 
  * @param int $rows
  * @param int $columns
  * @param int $rPos
  * @param int $cPos
  * @return void
  * @ignore
  */
 public function __construct($rows, $columns, $rPos, $cPos)
 {
     parent::__construct("Position '{$rPos}, {$cPos}' is out of the matrix boundings '{$rows}, {$columns}'.");
 }
コード例 #21
0
ファイル: no_such_dataset.php プロジェクト: jose-martins/glpi
 /**
  * Constructor
  * 
  * @param string $name
  * @return void
  * @ignore
  */
 public function __construct($name)
 {
     parent::__construct("No dataset with identifier '{$name}' could be found.");
 }
コード例 #22
0
ファイル: no_data.php プロジェクト: gbleydon/mahara-survey
 /**
  * Constructor
  * 
  * @return void
  * @ignore
  */
 public function __construct()
 {
     parent::__construct("No data sets assigned to chart.");
 }
コード例 #23
0
 /**
  * Constructor
  * 
  * @param int $minimum
  * @return void
  * @ignore
  */
 public function __construct($minimum)
 {
     parent::__construct("Value '{$minimum}' exceeds displayable values on a logarithmical scaled axis.");
 }
コード例 #24
0
 /**
  * Constructor
  * 
  * @param string $string
  * @param float $size
  * @param int $width
  * @param int $height
  * @return void
  * @ignore
  */
 public function __construct($string, $size, $width, $height)
 {
     parent::__construct("Could not fit string '{$string}' with font size '{$size}' in box '{$width} * {$height}'.\nPossible solutions to solve this problem:\n    - Decrease the amount of steps on the axis.\n    - Increase the size of the chart.\n    - Decrease the minimum font size.\n    - Use a font which consumes less space for each character.");
 }
コード例 #25
0
 /**
  * Constructor
  * 
  * @return void
  * @ignore
  */
 public function __construct()
 {
     parent::__construct("This cannot be set on data points, but only for data sets.");
 }
コード例 #26
0
 /**
  * Constructor
  * 
  * @param string $image
  * @return void
  * @ignore
  */
 public function __construct($image)
 {
     parent::__construct("File '{$image}' is not a valid image.");
 }
コード例 #27
0
ファイル: flash_bitmap_type.php プロジェクト: mediasadc/alba
 /**
  * Constructor
  * 
  * @return void
  * @ignore
  */
 public function __construct()
 {
     parent::__construct("Flash can only read non interlaced JPEGs.");
 }