Exemplo n.º 1
0
 /**
  * @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());
 }
Exemplo n.º 2
0
 /**
  * @param  string         $websiteId
  * @param  \Cms\Data\Build &$buildData
  */
 private function addPublishedStatusToBuildData($websiteId, BuildData &$buildData)
 {
     try {
         $publishedStatus = $this->getBusiness('Publisher')->getPublishedStatusByBuildId($websiteId, $buildData->getId());
         $buildData->setLastPublished($publishedStatus);
     } catch (\Exception $logOnly) {
         Registry::getLogger()->log(__METHOD__, __LINE__, $logOnly->getMessage(), Log::ERR);
     }
 }