public function ajaxResponse(\AjaxResponseObject $ajaxResponseObject) { $competence = \CompetenceRaster::getCompetenceById($this->competenceId); if ($this->checked == "true") { $this->artefact->addCompetenceString($this->competenceId); } else { $this->artefact->removeCompetenceString($this->competenceId); } $ajaxResponseObject->setStatus("ok"); return $ajaxResponseObject; }
public function removeCompetenceString($competenceString) { $competence = CompetenceRaster::getCompetenceById($competenceString); $this->removeCompetence($competence); }