/**
  *
  * @param \Planetflow3\Domain\Model\Item $item
  * @return void
  */
 public function addItem(\Planetflow3\Domain\Model\Item $item)
 {
     $item->setChannel($this);
     $this->items->add($item);
 }
 /**
  * Populate an item from a feed item
  *
  * @param $item \Planetflow3\Domain\Model\Item
  * @param $feedItem \SimplePie_Item
  * @return void
  */
 protected function populateItemProperties(Item $item, \SimplePie_Item $feedItem)
 {
     $item->setLink($feedItem->get_link());
     $item->setTitle($feedItem->get_title());
     $item->setDescription($feedItem->get_description());
     $item->setContent($feedItem->get_content(TRUE));
     $item->setPublicationDate(new \DateTime($feedItem->get_date()));
     $item->setAuthor($feedItem->get_author());
 }
 /**
  * Disable action
  *
  * @param \Planetflow3\Domain\Model\Item $item
  */
 public function disableAction(\Planetflow3\Domain\Model\Item $item)
 {
     $item->setDisabled(TRUE);
     $this->itemRepository->update($item);
     $this->addFlashMessage('Item disabled.', 'Success', \TYPO3\FLOW3\Error\Message::SEVERITY_OK);
     $this->redirect('index');
 }