You are here

private function PHPExcel_Writer_Excel2007_Chart::_writeAlternateContent in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Chart.php \PHPExcel_Writer_Excel2007_Chart::_writeAlternateContent()

Write Alternate Content block

Parameters

PHPExcel_Shared_XMLWriter $objWriter XML Writer:

Throws

PHPExcel_Writer_Exception

1 call to PHPExcel_Writer_Excel2007_Chart::_writeAlternateContent()
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 1555

Class

PHPExcel_Writer_Excel2007_Chart
PHPExcel_Writer_Excel2007_Chart

Code

private function _writeAlternateContent($objWriter) {
  $objWriter
    ->startElement('mc:AlternateContent');
  $objWriter
    ->writeAttribute('xmlns:mc', 'http://schemas.openxmlformats.org/markup-compatibility/2006');
  $objWriter
    ->startElement('mc:Choice');
  $objWriter
    ->writeAttribute('xmlns:c14', 'http://schemas.microsoft.com/office/drawing/2007/8/2/chart');
  $objWriter
    ->writeAttribute('Requires', 'c14');
  $objWriter
    ->startElement('c14:style');
  $objWriter
    ->writeAttribute('val', '102');
  $objWriter
    ->endElement();
  $objWriter
    ->endElement();
  $objWriter
    ->startElement('mc:Fallback');
  $objWriter
    ->startElement('c:style');
  $objWriter
    ->writeAttribute('val', '2');
  $objWriter
    ->endElement();
  $objWriter
    ->endElement();
  $objWriter
    ->endElement();
}