Esempio n. 1
0
 /**
  * @param  string $websiteId
  * @param  string $publishingId
  * @param  array  $publishConfig
  * @param  array  $serviceUrls
  *
  * @return \Cms\Data\PublisherStatus
  * @throws \Cms\Exception
  */
 protected function getStatusImplementations($websiteId, $publishingId, $publishConfig, $serviceUrls)
 {
     // return always finished
     $publishedStatus = new PublisherStatusData();
     $publishedStatus->setId($publishingId);
     $publishedStatus->setStatus(PublisherStatusData::STATUS_FINISHED);
     $publishedStatus->setTimestamp(time());
     return $publishedStatus;
 }
Esempio n. 2
0
 private function setPublisherStatusToInit($websiteId, $buildId, $publishingId)
 {
     $publishedStatus = new PublisherStatusData();
     $publishedStatus->setId($publishingId);
     $publishedStatus->setStatus(PublisherStatusData::STATUS_INIT);
     $publishedStatus->setTimestamp(time());
     $this->setPublisherStatus($websiteId, $buildId, $publishedStatus);
     return $publishedStatus;
 }