private function PHPExcel_Writer_Excel5_Workbook::_writeExterncount in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Workbook.php \PHPExcel_Writer_Excel5_Workbook::_writeExterncount()
* Write BIFF record EXTERNCOUNT to indicate the number of external sheet * references in the workbook. * * Excel only stores references to external sheets that are used in NAME. * The workbook NAME record is required to define the print area and the repeat * rows and columns. * * A similar method is used in Worksheet.php for a slightly different purpose. * *
Parameters
integer $cxals Number of external references:
1 call to PHPExcel_Writer_Excel5_Workbook::_writeExterncount()
- PHPExcel_Writer_Excel5_Workbook::_writeExterns in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel5/ Workbook.php - * Write the EXTERNCOUNT and EXTERNSHEET records. These are used as indexes for * the NAME records.
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel5/ Workbook.php, line 1048
Class
- PHPExcel_Writer_Excel5_Workbook
- PHPExcel_Writer_Excel5_Workbook
Code
private function _writeExterncount($cxals) {
$record = 0x16;
// Record identifier
$length = 0x2;
// Number of bytes to follow
$header = pack("vv", $record, $length);
$data = pack("v", $cxals);
$this
->_append($header . $data);
}