private static function PHPExcel_Reader_Excel2007_Chart::_chartLayoutDetails 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::_chartLayoutDetails()
2 calls to PHPExcel_Reader_Excel2007_Chart::_chartLayoutDetails()
- PHPExcel_Reader_Excel2007_Chart::readChart in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Reader/ Excel2007/ Chart.php - PHPExcel_Reader_Excel2007_Chart::_chartTitle in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Reader/ Excel2007/ Chart.php
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Reader/ Excel2007/ Chart.php, line 230
Class
- PHPExcel_Reader_Excel2007_Chart
- PHPExcel_Reader_Excel2007_Chart
Code
private static function _chartLayoutDetails($chartDetail, $namespacesChartMeta) {
if (!isset($chartDetail->manualLayout)) {
return null;
}
$details = $chartDetail->manualLayout
->children($namespacesChartMeta['c']);
if (is_null($details)) {
return null;
}
$layout = array();
foreach ($details as $detailKey => $detail) {
// echo $detailKey,' => ',self::_getAttribute($detail, 'val', 'string'),PHP_EOL;
$layout[$detailKey] = self::_getAttribute($detail, 'val', 'string');
}
return new PHPExcel_Chart_Layout($layout);
}