Lines Matching refs:file
18 public function can_handle($project, $file) { argument
19 if (!has_extension($file->name(), '.png')) return false;
20 $plot = $this->replace_extension($file->name(), '.png', '.plot');
21 return $project->file($plot) != NULL;
27 public function handle($project, $file) { argument
28 $plot = $this->replace_extension($file->name(), '.png', '.plot');
32 $target = new PlotTarget($project, $file, $source);
40 public function __construct($project, $file, $source) { argument
41 $deps = $file->dependency();
44 $this->name = $file->name();
53 $file = $this->plot->name();
55 $this->log($working_path, "Plot file $file is invalid: $error");