Beispiel #1
0
 public function __construct($buildid)
 {
     $this->Build = new Build();
     $this->Build->Id = $buildid;
     $this->Build->FillFromId($this->Build->Id);
     $this->ProjectId = $this->Build->ProjectId;
     $this->CoverageSummary = new CoverageSummary();
     $this->CoverageSummary->BuildId = $this->Build->Id;
     $this->SourceDirectory = '';
     $this->BinaryDirectory = '';
     $this->Labels = array();
     $this->SubProjectPath = '';
     // Check if we should support cross-SubProject coverage.
     if ($this->Build->SubProjectId > 0) {
         $subproject = new SubProject();
         $subproject->SetId($this->Build->SubProjectId);
         $path = $subproject->GetPath();
         if ($path != '') {
             $this->SubProjectPath = $path;
         }
     }
     $this->SubProjectSummaries = array();
     $this->PreviousAggregateParentId = null;
 }