24 include_once(
'./Services/Calendar/classes/class.ilDateList.php');
25 include_once(
'./Services/Calendar/classes/class.ilTimeZone.php');
26 include_once(
'./Services/Calendar/classes/class.ilCalendarUtil.php');
27 include_once
'./Services/Calendar/classes/class.ilCalendarEntry.php';
55 $this->exclusion_id = $a_exclusion_id;
89 $this->cal_id = $a_id;
98 return $this->exclusion instanceof
ilDate ? $this->exclusion : null;
108 $this->exclusion = $dt;
118 $start = $entry->getStart();
120 if($entry->isFullday())
122 return 'EXDATE;VALUE=DATE:'.$this->getDate()->get(
IL_CAL_FKT_DATE,
'Ymd');
145 $query =
"INSERT INTO cal_rec_exclusion (excl_id,cal_id,excl_date) ".
147 $ilDB->quote($next_id = $ilDB->nextId(
'cal_rec_exclusion'),
'integer').
', '.
148 $ilDB->quote($this->getEntryId(),
'integer').
', '.
149 $ilDB->quote($this->getDate()->get(
IL_CAL_DATE,
'',
'UTC'),
'timestamp').
151 $ilDB->manipulate(
$query);
153 $this->exclusion_id = $next_id;
154 return $this->
getId();
165 $query =
"SELECT * FROM cal_rec_exclusion WHERE excl_id = ".$ilDB->quote($this->
getId(),
'integer');
169 $this->cal_id =
$row->cal_id;