function store() { $cache = StudipCacheFactory::getCache(); $cache->expire('course/undecorated_data/' . $this->range_id); $this->chdate = time(); if ($this->ex_termin) { $this->killAssign(); $this->killIssue(); } // date_typ = 0 defaults to TERMIN_TYP[1] because there never exists one with zero if (!$this->date_typ) { $this->date_typ = 1; } if ($this->orig_ex != $this->ex_termin) { SingleDateDB::deleteSingleDate($this->termin_id, $this->orig_ex); } return SingleDateDB::storeSingleDate($this); }