/**
  * Adds a logentry to the custom notification log
  *
  * @param \DERHANSEN\SfEventMgt\Domain\Model\Event $event Event
  * @param string $details Details
  * @param int $emailsSent E-Mails sent
  *
  * @return void
  */
 public function createCustomNotificationLogentry($event, $details, $emailsSent)
 {
     $notificationlogEntry = new \DERHANSEN\SfEventMgt\Domain\Model\CustomNotificationLog();
     $notificationlogEntry->setEvent($event);
     $notificationlogEntry->setDetails($details);
     $notificationlogEntry->setEmailsSent($emailsSent);
     $notificationlogEntry->setCruserId($GLOBALS['BE_USER']->user['uid']);
     $this->customNotificationLogRepository->add($notificationlogEntry);
 }
 /**
  * The index notify action
  *
  * @param \DERHANSEN\SfEventMgt\Domain\Model\Event $event Event
  *
  * @return void
  */
 public function indexNotifyAction(Event $event)
 {
     $customNotifications = $this->settingsService->getCustomNotifications($this->settings);
     $logEntries = $this->customNotificationLogRepository->findByEvent($event);
     $this->view->assignMultiple(array('event' => $event, 'customNotifications' => $customNotifications, 'logEntries' => $logEntries));
 }