103 $this->_datasize = 0;
115 if (!isset(self::$_byte_order)) {
117 $teststr = pack(
"d", 1.2345);
118 $number = pack(
"C8", 0x8D, 0x97, 0x6E, 0x12, 0x83, 0xC0, 0xF3, 0x3F);
119 if ($number == $teststr) {
121 } elseif ($number == strrev($teststr)){
127 self::$_byte_order = $byte_order;
130 return self::$_byte_order;
141 if (strlen(
$data) - 4 > $this->_limit) {
144 $this->_data .=
$data;
145 $this->_datasize += strlen(
$data);
156 if (strlen(
$data) - 4 > $this->_limit) {
159 $this->_datasize += strlen(
$data);
178 $unknown = pack(
"VV", 0x000100D1, 0x00000406);
185 $header = pack(
"vv", $record, $length);
200 $header = pack(
"vv", $record, $length);
213 $header = pack(
"vv", $record, $length);
236 $tmp = substr(
$data, 0, 2) . pack(
"v", $limit) . substr(
$data, 4, $limit);
238 $header = pack(
"vv", $record, $limit);
241 $data_length = strlen(
$data);
242 for ($i = $limit + 4; $i < ($data_length - $limit); $i += $limit) {
244 $tmp .= substr(
$data, $i, $limit);
250 $tmp .= substr(
$data, $i, strlen(
$data) - $i);
_append($data)
General storage function.
__construct()
Constructor.
_addContinue($data)
Excel limits the size of BIFF records.
_storeBof($type)
Writes Excel BOF record to indicate the beginning of a stream or sub-stream in the BIFF file...
writeData($data)
General storage function like _append, but returns string instead of modifying $this->_data.
writeEof()
Writes Excel EOF record to indicate the end of a BIFF stream.
static getByteOrder()
Determine the byte order and store it as class data to avoid recalculating it for each call to new()...
_storeEof()
Writes Excel EOF record to indicate the end of a BIFF stream.