public function getPublished()
 {
     $this->__load();
     return parent::getPublished();
 }
Пример #2
0
 /**
  * Set article dates
  *
  * @param Article $article
  * @param Newscoop\Entity\Ingest\Feed\Entry $entry
  * @return void
  */
 private function setArticleDates(\Article $article, Entry $entry)
 {
     $entry->setPublished(new \DateTime());
     $article->setCreationDate($entry->getCreated()->format(self::DATETIME_FORMAT));
     $article->setPublishDate($entry->getPublished()->format(self::DATETIME_FORMAT));
     $article->setProperty('time_updated', $entry->getUpdated()->format(self::DATETIME_FORMAT));
 }