40         $this->
ctrl = $DIC->ctrl();
    41         $this->
lng = $DIC->language();
    42         $this->
access = $DIC->access();
    43         $ilCtrl = $DIC->ctrl();
    45         $this->
object = $a_survey;
    48         $this->skill_tree_service = $DIC->skills()->tree();
    49         $this->skill_tree = $this->skill_tree_service->getGlobalSkillTree();
    59         $this->
setRowTemplate(
"tpl.svy_skill_ass_row.html", 
"components/ILIAS/Survey");
    64         $survey_questions = $this->
object->getSurveyQuestions();
    68         if (count($survey_questions) > 0) {
    69             $table_data = array();
    70             $last_questionblock_id = $position = $block_position = 0;
    71             foreach ($survey_questions as $question_id => 
$data) {
    75                 if ((
int) 
$data[
"questiontype_fi"] === 2) {
    81                 $table_data[
$id] = array(
"id" => 
$id,
    83                     "supported" => $supported,
    84                     "heading" => 
$data[
"heading"],
    85                     "title" => 
$data[
"title"],
    86                     "description" => 
$data[
"description"],
    87                     "author" => 
$data[
"author"],
    88                     "obligatory" => (
bool) 
$data[
"obligatory"]);
    94     protected function fillRow(array $a_set): void
    99         $ilCtrl->
setParameter($this->parent_obj, 
"q_id", $a_set[
"id"]);
   101         if ($a_set[
"supported"]) {
   102             $this->tpl->setCurrentBlock(
"cmd");
   103             $this->tpl->setVariable(
   105                 $ilCtrl->getLinkTarget(
   107                     "assignSkillToQuestion"   110             $this->tpl->setVariable(
"TXT_CMD", 
$lng->
txt(
"survey_assign_competence"));
   111             $this->tpl->parseCurrentBlock();
   113             if ($s = $this->skill_survey->getSkillForQuestion($a_set[
"id"])) {
   114                 $this->tpl->setCurrentBlock(
"cmd");
   115                 $this->tpl->setVariable(
   117                     $ilCtrl->getLinkTarget(
   119                         "removeSkillFromQuestion"   122                 $this->tpl->setVariable(
"TXT_CMD", 
$lng->
txt(
"survey_remove_competence"));
   123                 $this->tpl->parseCurrentBlock();
   125                 $this->tpl->setVariable(
   131                 $path = $this->skill_tree->getSkillTreePath($s[
"base_skill_id"], $s[
"tref_id"]);
   132                 $path_nodes = array();
   133                 foreach (
$path as $p) {
   134                     if ($p[
"child"] > 1 && $p[
"skill_id"] != $s[
"base_skill_id"]) {
   138                 $this->tpl->setVariable(
"PATH", implode(
" > ", $path_nodes));
   139                 $this->tpl->setVariable(
"COMP_ID", 
"comp_" . $a_set[
"id"]);
   142             $this->tpl->setVariable(
"NOT_SUPPORTED", 
$lng->
txt(
"svy_skl_comp_assignm_not_supported"));
   145         $this->tpl->setVariable(
"QUESTION_TITLE", $a_set[
"title"]);
   147         $ilCtrl->setParameter($this->parent_obj, 
"q_id", 
"");
 
__construct(object $a_parent_obj, string $a_parent_cmd, ilObjSurvey $a_survey)
 
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
 
setFormAction(string $a_form_action, bool $a_multipart=false)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
ilSurveySkill $skill_survey
 
static _lookupTitle(int $a_obj_id, int $a_tref_id=0)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
TableGUI class for survey questions to skill assignment. 
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
SkillTreeService $skill_tree_service
 
__construct(Container $dic, ilPlugin $plugin)
 
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
 
ilGlobalSkillTree $skill_tree
 
setParameter(object $a_gui_obj, string $a_parameter, $a_value)