예제 #1
0
 /**
  * Sets the calendar item repeat rules.
  *
  * @param $calendarItemData
  * @param CalendarItem $calendarItem
  */
 protected function setRepeatRule($calendarItemData, CalendarItem $calendarItem)
 {
     $data = $this->getData('RRULE', $calendarItemData);
     if (count($data) == 0) {
         return;
     }
     $calendarItem->setRepeatInterval($this->getRepeatInterval($data[0]));
     $calendarItem->setRepeatDays($this->getRepeatDays($data[0]));
     $calendarItem->setRepeatCount($this->getRepeatCount($data[0]));
     $calendarItem->setRepeatEndDate($this->getRepeatEndDate($data[0]));
     $this->setRepeatExceptions($calendarItemData, $calendarItem);
 }