Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 public function removeCompetenceString($competenceString)
 {
     $competence = CompetenceRaster::getCompetenceById($competenceString);
     $this->removeCompetence($competence);
 }