Lines Matching refs:this

50         if ($this->bzfile !== null)
51 bzclose($this->bzfile);
52 if ($this->tmpName !== null)
53 unlink($this->tmpName);
55 $this->bzfile = null;
56 $this->tmpName = null;
57 $this->nbRead = 0;
58 $this->filePos = 0;
71 $this->nbRead++;
72 if ($this->nbRead > 1) {
76 $dataFilename = $this->source->getDataFilename();
79 $this->tmpName = null;
80 $this->bzfile = @bzopen($dataFilename, 'r');
81 if ($this->bzfile === false) {
85 $this->tmpName = tempnam(File_Archive::getOption('tmpDirectory'), 'far');
89 $dest->newFile($this->tmpName);
90 $this->source->sendData($dest);
93 $this->bzfile = bzopen($this->tmpName, 'r');
106 $name = $this->source->getFilename();
122 $newData = bzread($this->bzfile);
125 $this->filePos += strlen($data);
133 $newData = bzread($this->bzfile, $length - strlen($data));
139 $this->filePos += strlen($data);
150 $before = $this->filePos;
152 bzclose($this->bzfile);
153 if ($this->tmpName === null) {
154 $this->bzfile = bzopen($this->source->getDataFilename(), 'r');
156 $this->bzfile = bzopen($this->tmpName, 'r');
158 $this->filePos = 0;
161 $this->skip($before - $length);
163 return $before - $this->filePos;
171 return $this->filePos;
197 if ($this->nbRead == 0) {
203 $expectedPos = $this->filePos + $seek;
205 $this->rewind();
208 while ($this->filePos < $expectedPos &&
209 ($data = $this->getData(min($expectedPos - $this->filePos, 8192))) !== null) {
216 $expectedPos = $this->filePos + $length;
217 while ($this->filePos < $expectedPos &&
218 … ($data = $this->getData(min($expectedPos - $this->filePos, 8192))) !== null) {
222 $this->skip($length);
228 while(($data = $this->getData(8192)) !== null) {
235 $this->source->rewind();
236 $innerWriter = $this->source->makeWriterRemoveBlocks(array()); //Truncate the source
237 unset($this->source);
248 $this->close();