コード例 #1
0
 /**
  * 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);
 }