コード例 #1
0
ファイル: feature.class.php プロジェクト: joklaps/mytourbook
 /**
  * default constructor
  */
 function Feature($language, $train, $tmp_dir, $output_dir, $fragments = null)
 {
     $this->language = $language;
     $this->train = $train;
     if (!$fragments) {
         $fragments = Fragment::select($language, $train);
     }
     $this->fragments = $fragments;
     $this->output_dir = $output_dir;
     $this->tmp_dir = $tmp_dir;
     $projects = $this->associated_projects();
     if (count($projects) == 1) {
         $this->feature_id = "org.eclipse.babel.nls_" . $projects[0]->id . "_" . $language->iso;
     } else {
         $this->feature_id = "org.eclipse.babel.nls_" . $language->iso;
     }
 }