public function setLearningProgress($a_ref_id, $a_user) { include_once './Services/Tracking/classes/class.ilLPMarks.php'; $marks = new ilLPMarks($this->ref_id, $this->user_id); $marks->setMark($this->params["event_integer"]); $marks->setComment($this->params["event_text"]); if ($this->isNewEntry($a_ref_id, $a_user)) { $marks->__add(); } else { $marks->update(); } }