本文整理汇总了PHP中ezcGraphException类的典型用法代码示例。如果您正苦于以下问题:PHP ezcGraphException类的具体用法?PHP ezcGraphException怎么用?PHP ezcGraphException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ezcGraphException类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: __construct
/**
* 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}'.");
}
开发者ID:andikoller,项目名称:FHC-3.0-FHBGLD,代码行数:14,代码来源:out_of_boundings.php
示例17: __construct
/**
* Constructor
*
* @param string $name
* @return void
* @ignore
*/
public function __construct($name)
{
parent::__construct("No dataset with identifier '{$name}' could be found.");
}
开发者ID:jose-martins,项目名称:glpi,代码行数:11,代码来源:no_such_dataset.php
示例18: __construct
/**
* Constructor
*
* @param int $minimum
* @return void
* @ignore
*/
public function __construct($minimum)
{
parent::__construct("Value '{$minimum}' exceeds displayable values on a logarithmical scaled axis.");
}
开发者ID:jose-martins,项目名称:glpi,代码行数:11,代码来源:out_of_logarithmical_boundings.php
示例19: __construct
/**
* 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.");
}
开发者ID:jordanmanning,项目名称:ezpublish,代码行数:14,代码来源:font_rendering.php
示例20: __construct
/**
* Constructor
*
* @param string $image
* @return void
* @ignore
*/
public function __construct($image)
{
parent::__construct("File '{$image}' is not a valid image.");
}
开发者ID:gbleydon,项目名称:mahara-survey,代码行数:11,代码来源:invalid_image_file.php
注:本文中的ezcGraphException类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论