Lines Matching refs:this

50         if ($this->gzfile !== null) {
51 gzclose($this->gzfile);
53 if ($this->tmpName !== null) {
54 unlink($this->tmpName);
57 $this->nbRead = 0;
58 $this->filePos = 0;
59 $this->gzfile = null;
60 $this->tmpName = null;
74 $this->nbRead++;
75 $this->filePos = 0;
76 if ($this->nbRead > 1) {
80 $dataFilename = $this->source->getDataFilename();
83 $this->tmpName = null;
84 $this->gzfile = gzopen($dataFilename, 'r');
86 $this->tmpName = tempnam(File_Archive::getOption('tmpDirectory'), 'far');
90 $dest->newFile($this->tmpName);
91 $this->source->sendData($dest);
94 $this->gzfile = gzopen($this->tmpName, 'r');
108 $name = $this->source->getFilename();
130 $newData = gzread($this->gzfile, 8192);
136 $data = gzread($this->gzfile, $length);
139 $this->filePos += strlen($data);
151 $tmp = gzread($this->gzfile, 8192);
152 $this->filePos += strlen($tmp);
155 if (@gzseek($this->gzfile, $this->filePos + $length) === -1) {
158 $this->filePos += $length;
170 if (@gzseek($this->gzfile, 0) === -1) {
173 $tmp = $this->filePos;
174 $this->filePos = 0;
178 $length = min($length, $this->filePos);
179 if (@gzseek($this->gzfile, $this->filePos - $length) === -1) {
182 $this->filePos -= $length;
193 return $this->filePos;
219 if ($this->nbRead == 0) {
225 $expectedPos = $this->filePos + $seek;
226 $this->rewind();
229 while ($this->filePos < $expectedPos &&
230 ($data = $this->getData(min($expectedPos - $this->filePos, 8192))) !== null) {
237 $expectedPos = $this->filePos + $length;
238 while ($this->filePos < $expectedPos &&
239 … ($data = $this->getData(min($expectedPos - $this->filePos, 8192))) !== null) {
243 $this->skip($length);
249 while(($data = $this->getData(8192)) !== null) {
256 $this->source->rewind();
257 $innerWriter = $this->source->makeWriterRemoveBlocks(array()); //Truncate the source
258 unset($this->source);
269 $this->close();