You are here

public function PHPExcel_Shared_OLE_PPS_Root::_savePps in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLE/PPS/Root.php \PHPExcel_Shared_OLE_PPS_Root::_savePps()

* Saves all the PPS's WKs * * @access public *

Parameters

array $raList Reference to an array with all PPS's:

1 call to PHPExcel_Shared_OLE_PPS_Root::_savePps()
PHPExcel_Shared_OLE_PPS_Root::save in vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLE/PPS/Root.php
* Method for saving the whole OLE container (including files). * In fact, if called with an empty argument (or '-'), it saves to a * temporary file and then outputs it's contents to stdout. * If a resource pointer to a stream created…

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLE/PPS/Root.php, line 364

Class

PHPExcel_Shared_OLE_PPS_Root
Class for creating Root PPS's for OLE containers

Code

public function _savePps(&$raList) {

  // Save each PPS WK
  $iC = count($raList);
  for ($i = 0; $i < $iC; ++$i) {
    fwrite($this->_FILEH_, $raList[$i]
      ->_getPpsWk());
  }

  // Adjust for Block
  $iCnt = count($raList);
  $iBCnt = $this->_BIG_BLOCK_SIZE / PHPExcel_Shared_OLE::OLE_PPS_SIZE;
  if ($iCnt % $iBCnt) {
    fwrite($this->_FILEH_, str_repeat("\0", ($iBCnt - $iCnt % $iBCnt) * PHPExcel_Shared_OLE::OLE_PPS_SIZE));
  }
}