Lines Matching refs:file

125 		if ($this->file($name) == NULL) return NULL;
157 public function file($name) { function in Project
195 public function update_file($file) { argument
196 $file = $this->handle($file);
197 if ($file == NULL) return true;
200 $name = $file->name();
203 $this->files[$name] = ProjectFile::create($this, $file);
207 if ($old->type() != $file->type()) {
210 return $this->update_file($file);
213 if ($old->equal($this->project_path, $file)) {
218 $old->copy($this->project_path, $file);
230 public function handle($file) { argument
232 $handlers = $plugins->handlers($this, $file);
233 if (!$handlers) return $file;
236 return $handler->handle($this, $file);
244 foreach ($this->files as $name => $file)
245 if ($file->type() == CROSSLINK && !in_array($nme, $files))
251 $file = $this->files[$name];
252 if ($file) {
253 if ($file->is_target()) $file->delete($this->path());
263 $file = $this->files[$name];
264 if ($file->is_target())
265 $file->set_last_made_time($this->path());
280 while (($file = readdir($dh)) !== false) {
281 if ($file === '.' || $file === '..') continue;
282 $path = $this->project_path . $file;
284 $sub_project = self::project($this->name . ":" . $file);
293 $file = $this->file($file);
294 if ($file === NULL) {
300 foreach ($this->files as $file)
301 if ($file->is_target()) $this->changed[] = $file->name();
322 while (($file = readdir($dh)) !== false) {
323 if ($file === '.' || $file === '..' ||
324 !has_extension($file, '.txt')) continue;
326 $file_id = substr($file, 0, -4);
359 foreach ($this->files as $name => $file)
360 if ($file->is_target() && $file->needs_update($this->path()))
368 while (($file = readdir($dh)) !== false) {
369 if ($file === '.' || $file === '..') continue;
370 $path = $this->project_path . $file;
371 if (!is_dir($path) || self::project($this->ID . ":$file", false) == NULL)
373 $subprojects[] = $file;