41 $this->db = $DIC->database();
42 $this->exclusion_id = $a_exclusion_id;
60 $this->cal_id = $a_id;
65 return $this->exclusion instanceof
ilDate ? $this->exclusion : null;
73 $this->exclusion = $dt;
79 $start = $entry->getStart();
81 if ($entry->isFullday()) {
96 $query =
"INSERT INTO cal_rec_exclusion (excl_id,cal_id,excl_date) " .
98 $this->db->quote($next_id = $this->db->nextId(
'cal_rec_exclusion'),
'integer') .
', ' .
99 $this->db->quote($this->getEntryId(),
'integer') .
', ' .
100 $this->db->quote($this->getDate()->get(
IL_CAL_DATE,
'',
'UTC'),
'timestamp') .
102 $this->db->manipulate($query);
104 $this->exclusion_id = $next_id;
105 return $this->
getId();
110 $query =
"SELECT * FROM cal_rec_exclusion WHERE excl_id = " . $this->db->quote($this->
getId(),
'integer');
111 $res = $this->db->query($query);
113 $this->cal_id = $row->cal_id;
__construct(int $a_exclusion_id=0)
setDate(?ilDate $dt=null)
Set exclusion date.
Stores exclusion dates for calendar recurrences.