private static function PHPExcel_Reader_Excel2007_Chart::_getAttribute in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel2007/Chart.php \PHPExcel_Reader_Excel2007_Chart::_getAttribute()
7 calls to PHPExcel_Reader_Excel2007_Chart::_getAttribute()
- PHPExcel_Reader_Excel2007_Chart::readChart in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Reader/ Excel2007/ Chart.php - PHPExcel_Reader_Excel2007_Chart::_chartDataSeries in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Reader/ Excel2007/ Chart.php - PHPExcel_Reader_Excel2007_Chart::_chartDataSeriesValues in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Reader/ Excel2007/ Chart.php - PHPExcel_Reader_Excel2007_Chart::_chartDataSeriesValuesMultiLevel in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Reader/ Excel2007/ Chart.php - PHPExcel_Reader_Excel2007_Chart::_chartLayoutDetails in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Reader/ Excel2007/ Chart.php
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Reader/ Excel2007/ Chart.php, line 37
Class
- PHPExcel_Reader_Excel2007_Chart
- PHPExcel_Reader_Excel2007_Chart
Code
private static function _getAttribute($component, $name, $format) {
$attributes = $component
->attributes();
if (isset($attributes[$name])) {
if ($format == 'string') {
return (string) $attributes[$name];
}
elseif ($format == 'integer') {
return (int) $attributes[$name];
}
elseif ($format == 'boolean') {
return (bool) ($attributes[$name] === '0' || $attributes[$name] !== 'true') ? false : true;
}
else {
return (double) $attributes[$name];
}
}
return null;
}