@@ 133-140 (lines=8) @@ | ||
130 | * |
|
131 | * @param string $data binary data to append |
|
132 | */ |
|
133 | protected function append($data) |
|
134 | { |
|
135 | if (strlen($data) - 4 > $this->limit) { |
|
136 | $data = $this->addContinue($data); |
|
137 | } |
|
138 | $this->_data .= $data; |
|
139 | $this->_datasize += strlen($data); |
|
140 | } |
|
141 | ||
142 | /** |
|
143 | * General storage function like append, but returns string instead of modifying $this->_data. |
|
@@ 149-157 (lines=9) @@ | ||
146 | * |
|
147 | * @return string |
|
148 | */ |
|
149 | public function writeData($data) |
|
150 | { |
|
151 | if (strlen($data) - 4 > $this->limit) { |
|
152 | $data = $this->addContinue($data); |
|
153 | } |
|
154 | $this->_datasize += strlen($data); |
|
155 | ||
156 | return $data; |
|
157 | } |
|
158 | ||
159 | /** |
|
160 | * Writes Excel BOF record to indicate the beginning of a stream or |