예제 #1
0
 /**
  * Identify the project from the name we've been created with.
  *
  * We leverage the update (status) module to get the data we require about
  * projects. We just pull the information in, and make descisions about this
  * project being from CVS or not.
  */
 public function identifyProject()
 {
     // Only do this once, no matter how many times we're called.
     if (!empty($this->project_identified)) {
         return;
     }
     $data = (array) $this->project;
     $this->project_info = array();
     foreach ($data as $key => $value) {
         $key = str_replace('*', '', $key);
         $this->project_info[$key] = $value;
     }
     $this->project_info['releases'] = $this->project->getReleases();
     $this->project_identified = true;
     $this->existing_version = $this->project->getExistingVersion();
     $this->project_type = 'module';
     $this->project_info['includes'] = array($this->name . '.module');
 }