private function PHPExcel_Writer_Excel2007_Chart::_writeTitle in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Chart.php \PHPExcel_Writer_Excel2007_Chart::_writeTitle()
Write Chart Title
Parameters
PHPExcel_Chart_Title $title:
PHPExcel_Shared_XMLWriter $objWriter XML Writer:
Throws
1 call to PHPExcel_Writer_Excel2007_Chart::_writeTitle()
- PHPExcel_Writer_Excel2007_Chart::writeChart in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel2007/ Chart.php - Write charts to XML format
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel2007/ Chart.php, line 133
Class
- PHPExcel_Writer_Excel2007_Chart
- PHPExcel_Writer_Excel2007_Chart
Code
private function _writeTitle(PHPExcel_Chart_Title $title = NULL, $objWriter) {
if (is_null($title)) {
return;
}
$objWriter
->startElement('c:title');
$objWriter
->startElement('c:tx');
$objWriter
->startElement('c:rich');
$objWriter
->startElement('a:bodyPr');
$objWriter
->endElement();
$objWriter
->startElement('a:lstStyle');
$objWriter
->endElement();
$objWriter
->startElement('a:p');
$caption = $title
->getCaption();
if (is_array($caption) && count($caption) > 0) {
$caption = $caption[0];
}
$this
->getParentWriter()
->getWriterPart('stringtable')
->writeRichTextForCharts($objWriter, $caption, 'a');
$objWriter
->endElement();
$objWriter
->endElement();
$objWriter
->endElement();
$layout = $title
->getLayout();
$this
->_writeLayout($layout, $objWriter);
$objWriter
->startElement('c:overlay');
$objWriter
->writeAttribute('val', 0);
$objWriter
->endElement();
$objWriter
->endElement();
}