You are here

private function PHPExcel_Writer_OpenDocument_Content::_writeSheets in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/OpenDocument/Content.php \PHPExcel_Writer_OpenDocument_Content::_writeSheets()

Write sheets

Parameters

PHPExcel_Shared_XMLWriter $objWriter:

1 call to PHPExcel_Writer_OpenDocument_Content::_writeSheets()
PHPExcel_Writer_OpenDocument_Content::write in vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/OpenDocument/Content.php
Write content.xml to XML format

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/OpenDocument/Content.php, line 122

Class

PHPExcel_Writer_OpenDocument_Content
PHPExcel_Writer_OpenDocument_Content

Code

private function _writeSheets(PHPExcel_Shared_XMLWriter $objWriter) {
  $pPHPExcel = $this
    ->getParentWriter()
    ->getPHPExcel();

  /* @var $pPHPExcel PHPExcel */
  $sheet_count = $pPHPExcel
    ->getSheetCount();
  for ($i = 0; $i < $sheet_count; $i++) {

    //$this->getWriterPart('Worksheet')->writeWorksheet());
    $objWriter
      ->startElement('table:table');
    $objWriter
      ->writeAttribute('table:name', $pPHPExcel
      ->getSheet($i)
      ->getTitle());
    $objWriter
      ->writeElement('office:forms');
    $objWriter
      ->startElement('table:table-column');
    $objWriter
      ->writeAttribute('table:number-columns-repeated', self::NUMBER_COLS_REPEATED_MAX);
    $objWriter
      ->endElement();
    $this
      ->_writeRows($objWriter, $pPHPExcel
      ->getSheet($i));
    $objWriter
      ->endElement();
  }
}