/**
  * fill row 
  *
  * @access public
  * @param
  * @return
  */
 public function fillRow($data)
 {
     global $ilUser, $ilAccess;
     include_once "./Modules/SurveyQuestionPool/classes/class.SurveyQuestion.php";
     include_once "./Modules/SurveyQuestionPool/classes/class.SurveyQuestionGUI.php";
     $class = strtolower(SurveyQuestionGUI::_getGUIClassNameForId($data["question_id"]));
     $guiclass = $class . "GUI";
     $this->ctrl->setParameterByClass(strtolower($guiclass), "q_id", $data["question_id"]);
     if ($this->getEditable()) {
         $url_edit = $this->ctrl->getLinkTargetByClass(strtolower($guiclass), "editQuestion");
         $this->tpl->setCurrentBlock("title_link_bl");
         $this->tpl->setVariable("QUESTION_TITLE_LINK", $data["title"]);
         $this->tpl->setVariable("URL_TITLE", $url_edit);
         $this->tpl->parseCurrentBlock();
     } else {
         $this->tpl->setCurrentBlock("title_nolink_bl");
         $this->tpl->setVariable("QUESTION_TITLE", $data["title"]);
         $this->tpl->parseCurrentBlock();
     }
     if ($data["complete"] == 0) {
         $this->tpl->setCurrentBlock("qpl_warning");
         $this->tpl->setVariable("IMAGE_WARNING", ilUtil::getImagePath("icon_alert.svg"));
         $this->tpl->setVariable("ALT_WARNING", $this->lng->txt("warning_question_not_complete"));
         $this->tpl->setVariable("TITLE_WARNING", $this->lng->txt("warning_question_not_complete"));
         $this->tpl->parseCurrentBlock();
     }
     foreach ($this->getSelectedColumns() as $c) {
         if (strcmp($c, 'description') == 0) {
             $this->tpl->setCurrentBlock('description');
             $this->tpl->setVariable("QUESTION_COMMENT", strlen($data["description"]) ? $data["description"] : " ");
             $this->tpl->parseCurrentBlock();
         }
         if (strcmp($c, 'type') == 0) {
             $this->tpl->setCurrentBlock('type');
             $this->tpl->setVariable("QUESTION_TYPE", SurveyQuestion::_getQuestionTypeName($data["type_tag"]));
             $this->tpl->parseCurrentBlock();
         }
         if (strcmp($c, 'author') == 0) {
             $this->tpl->setCurrentBlock('author');
             $this->tpl->setVariable("QUESTION_AUTHOR", $data["author"]);
             $this->tpl->parseCurrentBlock();
         }
         if (strcmp($c, 'created') == 0) {
             $this->tpl->setCurrentBlock('created');
             $this->tpl->setVariable("QUESTION_CREATED", ilDatePresentation::formatDate(new ilDate($data['created'], IL_CAL_UNIX)));
             $this->tpl->parseCurrentBlock();
         }
         if (strcmp($c, 'updated') == 0) {
             $this->tpl->setCurrentBlock('updated');
             $this->tpl->setVariable("QUESTION_UPDATED", ilDatePresentation::formatDate(new ilDate($data["tstamp"], IL_CAL_UNIX)));
             $this->tpl->parseCurrentBlock();
         }
     }
     // actions
     include_once "Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php";
     $list = new ilAdvancedSelectionListGUI();
     $list->setId($data["question_id"]);
     $list->setListTitle($this->lng->txt("actions"));
     if ($url_edit) {
         $list->addItem($this->lng->txt("edit"), "", $url_edit);
     }
     $list->addItem($this->lng->txt("preview"), "", $this->ctrl->getLinkTargetByClass(strtolower($guiclass), "preview"));
     $this->tpl->setVariable("ACTION", $list->getHTML());
     $this->tpl->parseCurrentBlock();
     // obligatory
     if ($this->getEditable()) {
         $checked = $data["obligatory"] ? " checked=\"checked\"" : "";
         $obligatory = "<input type=\"checkbox\" name=\"obligatory_" . $data["question_id"] . "\" value=\"1\"" . $checked . " />";
     } else {
         if ($data["obligatory"]) {
             $obligatory = "<img src=\"" . ilUtil::getImagePath("obligatory.png", "Modules/Survey") . "\" alt=\"" . $this->lng->txt("question_obligatory") . "\" title=\"" . $this->lng->txt("question_obligatory") . "\" />";
         }
     }
     $this->tpl->setVariable("OBLIGATORY", $obligatory);
     if ($this->getWriteAccess()) {
         $this->tpl->setVariable('CBOX_ID', $data["question_id"]);
     }
     $this->tpl->setVariable('QUESTION_ID', $data["question_id"]);
 }
 /**
  * fill row 
  *
  * @access public
  * @param
  * @return
  */
 public function fillRow($data)
 {
     global $ilUser, $ilAccess;
     include_once "./Modules/SurveyQuestionPool/classes/class.SurveyQuestion.php";
     include_once "./Modules/SurveyQuestionPool/classes/class.SurveyQuestionGUI.php";
     $class = strtolower(SurveyQuestionGUI::_getGUIClassNameForId($data["question_id"]));
     $guiclass = $class . "GUI";
     $this->ctrl->setParameterByClass(strtolower($guiclass), "q_id", $data["question_id"]);
     if ($this->getEditable()) {
         $this->tpl->setCurrentBlock("edit_link");
         $this->tpl->setVariable("TXT_EDIT", $this->lng->txt("edit"));
         $this->tpl->setVariable("LINK_EDIT", $this->ctrl->getLinkTargetByClass(strtolower($guiclass), "editQuestion"));
         $this->tpl->parseCurrentBlock();
     }
     if ($data["complete"] == 0) {
         $this->tpl->setCurrentBlock("qpl_warning");
         $this->tpl->setVariable("IMAGE_WARNING", ilUtil::getImagePath("warning.png"));
         $this->tpl->setVariable("ALT_WARNING", $this->lng->txt("warning_question_not_complete"));
         $this->tpl->setVariable("TITLE_WARNING", $this->lng->txt("warning_question_not_complete"));
         $this->tpl->parseCurrentBlock();
     }
     foreach ($this->getSelectedColumns() as $c) {
         if (strcmp($c, 'description') == 0) {
             $this->tpl->setCurrentBlock('description');
             $this->tpl->setVariable("QUESTION_COMMENT", strlen($data["description"]) ? $data["description"] : "&nbsp;");
             $this->tpl->parseCurrentBlock();
         }
         if (strcmp($c, 'type') == 0) {
             $this->tpl->setCurrentBlock('type');
             $this->tpl->setVariable("QUESTION_TYPE", SurveyQuestion::_getQuestionTypeName($data["type_tag"]));
             $this->tpl->parseCurrentBlock();
         }
         if (strcmp($c, 'author') == 0) {
             $this->tpl->setCurrentBlock('author');
             $this->tpl->setVariable("QUESTION_AUTHOR", $data["author"]);
             $this->tpl->parseCurrentBlock();
         }
         if (strcmp($c, 'created') == 0) {
             $this->tpl->setCurrentBlock('created');
             $this->tpl->setVariable("QUESTION_CREATED", ilDatePresentation::formatDate(new ilDate($data['created'], IL_CAL_UNIX)));
             $this->tpl->parseCurrentBlock();
         }
         if (strcmp($c, 'updated') == 0) {
             $this->tpl->setCurrentBlock('updated');
             $this->tpl->setVariable("QUESTION_UPDATED", ilDatePresentation::formatDate(new ilDate($data["tstamp"], IL_CAL_UNIX)));
             $this->tpl->parseCurrentBlock();
         }
     }
     $this->tpl->setVariable('QUESTION_ID', $data["question_id"]);
     $this->tpl->setVariable("QUESTION_TITLE", $data["title"]);
     $this->tpl->setVariable("TXT_PREVIEW", $this->lng->txt("preview"));
     $this->tpl->setVariable("LINK_PREVIEW", $this->ctrl->getLinkTargetByClass(strtolower($guiclass), "preview"));
 }