You are here

function PHPExcel_Writer_Excel5_Worksheet::_writeBlank in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Worksheet.php \PHPExcel_Writer_Excel5_Worksheet::_writeBlank()

* Write a blank cell to the specified row and column (zero indexed). * A blank cell is used to specify formatting without adding a string * or a number. * * A blank cell without a format serves no purpose. Therefore, we don't write * a BLANK record unless a format is specified. * * Returns 0 : normal termination (including no format) * -1 : insufficient number of arguments * -2 : row or column out of range * *

Parameters

integer $row Zero indexed row: * @param integer $col Zero indexed column * @param mixed $xfIndex The XF format index

1 call to PHPExcel_Writer_Excel5_Worksheet::_writeBlank()
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/Worksheet.php, line 819

Class

PHPExcel_Writer_Excel5_Worksheet
PHPExcel_Writer_Excel5_Worksheet

Code

function _writeBlank($row, $col, $xfIndex) {
  $record = 0x201;

  // Record identifier
  $length = 0x6;

  // Number of bytes to follow
  $header = pack("vv", $record, $length);
  $data = pack("vvv", $row, $col, $xfIndex);
  $this
    ->_append($header . $data);
  return 0;
}