예제 #1
0
파일: Build.php 프로젝트: rukzuk/rukzuk
 /**
  * @param Cms\Data\Build $data
  */
 protected function setValuesFromData(Data\Build $data)
 {
     $this->setId($data->getId());
     $this->setVersion($data->getVersion());
     $this->setTimestamp($data->getTimestamp());
     $this->setComment($data->getComment());
     $this->setCreatorName($data->getCreatorName());
     $this->setLastPublished($data->getLastPublished());
 }
예제 #2
0
파일: Builder.php 프로젝트: rukzuk/rukzuk
 /**
  * @param  string $buildZipPath
  *
  * @return \Cms\Data\Build
  */
 private function getBuildDataFromBuildZipArchiveComment($buildZipPath)
 {
     $buildZipCommentJson = $this->getBuildZipArchiveComment($buildZipPath);
     $buildZipComment = json_decode($buildZipCommentJson, true);
     $build = new BuildData();
     $build->setFromArray($buildZipComment);
     if (is_null($build->getVersion())) {
         $build->setVersion($this->getVersionFromBuildId($build->getId()));
     }
     return $build;
 }