Lines Matching refs:this

96         $this->startReader =& $innerReader;
97 $this->uncompressionLevel = $uncompressionLevel;
111 if ($this->uncompressionLevel >= 0 &&
112 $this->baseDirCompressionLevel !== null &&
113 count($this->readers) >= $this->uncompressionLevel
119 $filename = $this->source->getFilename();
123 $reader =& $this->source;
140 $this->readers[count($this->readers)] =& $this->source;
141 unset($this->source);
142 $this->source = new File_Archive_Reader_AddBaseName(
153 if ($this->currentFileNotDisplayed) {
154 $this->currentFileNotDisplayed = false;
160 $selection = substr($this->baseDir, 0, $this->baseDirProgression);
165 $error = $this->source->select($selection, false);
170 if (empty($this->readers)) {
173 $this->source->close();
174 unset($this->source);
175 $this->source =& $this->readers[count($this->readers)-1];
176 unset($this->readers[count($this->readers)-1]);
180 $filename = $this->source->getFilename();
181 if (strlen($filename) < strlen($this->baseDir)) {
182 $goodFile = (strncmp($filename, $this->baseDir, strlen($filename)) == 0 &&
183 $this->baseDir{strlen($filename)} == '/');
185 if (strlen($filename) + 2 < strlen($this->baseDirProgression)) {
186 … $this->baseDirProgression = strpos($this->baseDir, '/', strlen($filename)+2);
187 if ($this->baseDirProgression === false) {
188 $this->baseDirProgression = strlen($this->baseDir);
191 $this->baseDirProgression = strlen($this->baseDir);
195 $goodFile = (strncmp($filename, $this->baseDir, strlen($this->baseDir)) == 0);
197 $this->baseDirProgression = strlen($this->baseDir);
200 } while ($goodFile && $this->push());
212 $this->baseDir = $baseDir;
213 $this->baseDirProgression = strpos($baseDir, '/');
214 if ($this->baseDirProgression === false) {
215 $this->baseDirProgression = strlen($baseDir);
218 $error = $this->next();
225 $this->currentFileNotDisplayed = true;
226 return strlen($this->getFilename())>strlen($baseDir);
234 $error = $this->close();
240 $oldBaseDir = $this->baseDir;
241 $oldProgression = $this->baseDirProgression;
243 $this->baseDir = $filename;
244 $this->baseDirProgression = 0;
246 $res = $this->next();
248 $this->baseDir = $oldBaseDir;
249 $this->baseDirProgression = $oldProgression;
259 for ($i=0; $i<count($this->readers); ++$i) {
260 $this->readers[$i]->close();
263 for ($i=0; $i<count($this->toClose); ++$i) {
264 if ($this->toClose[$i] !== null) {
265 $this->toClose[$i]->close();
269 $this->readers = array();
270 $this->toClose = array();
272 $this->baseDirCompressionLevel = null;
273 $this->baseDirProgression = 0;
275 unset($this->source);
276 $this->source =& $this->startReader;
277 $this->source->close();
278 $this->currentFileNotDisplayed = false;
289 $error = $this->next();
303 $error = $this->next();