private static function PHPExcel_Reader_Excel2007_Chart::_chartTitle in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel2007/Chart.php \PHPExcel_Reader_Excel2007_Chart::_chartTitle()
1 call to PHPExcel_Reader_Excel2007_Chart::_chartTitle()
- PHPExcel_Reader_Excel2007_Chart::readChart in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Reader/ Excel2007/ Chart.php
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Reader/ Excel2007/ Chart.php, line 205
Class
- PHPExcel_Reader_Excel2007_Chart
- PHPExcel_Reader_Excel2007_Chart
Code
private static function _chartTitle($titleDetails, $namespacesChartMeta, $type) {
$caption = array();
$titleLayout = null;
foreach ($titleDetails as $titleDetailKey => $chartDetail) {
switch ($titleDetailKey) {
case "tx":
$titleDetails = $chartDetail->rich
->children($namespacesChartMeta['a']);
foreach ($titleDetails as $titleKey => $titleDetail) {
switch ($titleKey) {
case "p":
$titleDetailPart = $titleDetail
->children($namespacesChartMeta['a']);
$caption[] = self::_parseRichText($titleDetailPart);
}
}
break;
case "layout":
$titleLayout = self::_chartLayoutDetails($chartDetail, $namespacesChartMeta);
break;
}
}
return new PHPExcel_Chart_Title($caption, $titleLayout);
}