예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function getReminderData()
 {
     if (!$this->getCalendar()) {
         throw new \LogicException(sprintf('Only user\'s calendar events can have reminders. Event Id: %d.', $this->id));
     }
     $result = new ReminderData();
     $result->setSubject($this->getTitle());
     $result->setExpireAt($this->getStart());
     $result->setRecipient($this->getCalendar()->getOwner());
     return $result;
 }
예제 #2
0
파일: Task.php 프로젝트: antrampa/crm
 /**
  * {@inheritdoc}
  */
 public function getReminderData()
 {
     $result = new ReminderData();
     $result->setSubject($this->getSubject());
     $result->setExpireAt($this->getDueDate());
     $result->setRecipient($this->getOwner());
     return $result;
 }
예제 #3
0
 /**
  * {@inheritdoc}
  */
 public function getReminderData()
 {
     $result = new ReminderData();
     $result->setSubject($this->getTitle());
     $result->setExpireAt($this->getStart());
     $result->setRecipient($this->getCalendar()->getOwner());
     return $result;
 }