Exemplo n.º 1
0
 /** 
  * returns a project file that can make $name
  */
 public function handle($project, $file)
 {
     $plot = $this->replace_extension($file->name(), '.png', '.plot');
     $source = new PlotDefinition(array('type' => SOURCE, 'name' => $plot));
     $source->add_content(file_get_contents($project->path() . $plot));
     $target = new PlotTarget($project, $file, $source);
     return $target;
 }
 public function handle($project, $file)
 {
     $plot = new PlotDefinition($file->attributes());
     $plot->add_content($file->content());
     return $plot;
 }