Ejemplo n.º 1
0
 /**
  * Generate a note associated with the cell given by the row and column.
  * NOTE records don't have a length limit
  * @param integer $row
  * @param integer $col
  * @param integer $objId
  *
  * @return string
  */
 public function getData($row, $col, $objId)
 {
     $grbit = 0x0;
     $data = pack("vvvv", $row, $col, $grbit, $objId);
     $author = 'xls-writer';
     $data .= StringUtils::toBiff8UnicodeLong($author);
     return $this->getFullRecord($data);
 }
Ejemplo n.º 2
0
 /**
  * Generate FORMAT record for non "built-in" numerical formats.
  *
  * @param string $format Custom format string
  * @param integer $formatIndex   Format index code
  * @return string
  */
 public function getData($format, $formatIndex)
 {
     $data = pack("v", $formatIndex);
     $data .= StringUtils::toBiff8UnicodeLong($format);
     return $this->getFullRecord($data);
 }