You are here

function PHPExcel_Writer_Excel5_BIFFwriter::_storeBof in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/BIFFwriter.php \PHPExcel_Writer_Excel5_BIFFwriter::_storeBof()

* Writes Excel BOF record to indicate the beginning of a stream or * sub-stream in the BIFF file. * *

Parameters

integer $type Type of BIFF file to write: 0x0005 Workbook,: * 0x0010 Worksheet. * @access private

2 calls to PHPExcel_Writer_Excel5_BIFFwriter::_storeBof()
PHPExcel_Writer_Excel5_Workbook::writeWorkbook in vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Workbook.php
* Assemble worksheets into a workbook and send the BIFF data to an OLE * storage. * *
PHPExcel_Writer_Excel5_Worksheet::close in vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Worksheet.php
* Add data to the beginning of the workbook (note the reverse order) * and to the end of the workbook. * * @access public *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/BIFFwriter.php, line 172

Class

PHPExcel_Writer_Excel5_BIFFwriter
PHPExcel_Writer_Excel5_BIFFwriter

Code

function _storeBof($type) {
  $record = 0x809;

  // Record identifier	(BIFF5-BIFF8)
  $length = 0x10;

  // by inspection of real files, MS Office Excel 2007 writes the following
  $unknown = pack("VV", 0x100d1, 0x406);
  $build = 0xdbb;

  //	Excel 97
  $year = 0x7cc;

  //	Excel 97
  $version = 0x600;

  //	BIFF8
  $header = pack("vv", $record, $length);
  $data = pack("vvvv", $version, $type, $build, $year);
  $this
    ->_append($header . $data . $unknown);
}