Lines Matching refs:this

68         $this->directory = empty($directory) ? '.' : $directory;
69 $this->symbolic = $this->getStandardURL($symbolic);
70 $this->maxRecurs = $maxRecurs;
80 if ($this->directoryHandle !== null) {
81 closedir($this->directoryHandle);
82 $this->directoryHandle = null;
95 if ($this->directoryHandle === null) {
96 $this->directoryHandle = opendir($this->directory);
97 if (!is_resource($this->directoryHandle)) {
99 "Directory {$this->directory} not found"
104 while ($this->source === null ||
105 ($error = $this->source->next()) !== true) {
107 if ($this->source !== null) {
108 $this->source->close();
111 $file = readdir($this->directoryHandle);
119 $current = $this->directory.'/'.$file;
121 if ($this->maxRecurs != 0) {
122 $this->source = new File_Archive_Reader_Directory(
123 $current, $file.'/', $this->maxRecurs-1
127 $this->source = new File_Archive_Reader_File($current, $file);
137 function getFilename() { return $this->symbolic . parent::getFilename(); }
144 if ($source !== null && $pred->isTrue($this)) {
145 $toUnlink = $this->getDataFilename();
150 while ($this->next()) {
155 $toUnlink = ($pred->isTrue($this) ? $this->getDataFilename() : null);
164 $writer = new File_Archive_Writer_Files($this->directory);
165 $this->close();
171 if ($this->source === null ||
172 is_a($this->source, 'File_Archive_Reader_File')) {
173 return $this->source;
175 return $this->source->getLastSource();
184 $lastSource = &$this->getLastSource();
193 $writer->basePath = $this->directory;
194 $this->close();
207 if ($this->source === null ||
208 is_a($this->source, 'File_Archive_Reader_File') ) {
209 $writer = new File_Archive_Writer_Files($this->directory);
211 $writer = $this->source->makeAppendWriter($seek);
214 $this->close();