36         $this->
ctrl = $DIC->ctrl();
    37         $this->
lng = $DIC->language();
    38         $this->
access = $DIC->access();
    39         $this->tree = $DIC->repositoryTree();
    40         $ilCtrl = $DIC->ctrl();
    41         $lng = $DIC->language();
    43         $this->question = $a_question;
    47         $this->
setId(
"il_svy_spl_sync");
    49         $this->
setTitle($this->question->getTitle());
    63         $this->
setRowTemplate(
"tpl.il_svy_qpl_sync.html", 
"Modules/SurveyQuestionPool");
    76         $table_data = array();
    77         foreach ($this->question->getCopyIds(
true) as $survey_obj_id => $questions) {
    78             $survey_id = 
new ilObjSurvey($survey_obj_id, 
false);
    79             $survey_id->loadFromDb();
    80             $survey_id = $survey_id->getSurveyId();
    89                     if ($ilAccess->checkAccess(
"edit", 
"", $ref_id)) {
   103             $survey_path = $this->
buildPath($ref_ids);
   105             foreach ($questions as $question_id) {
   112                 $table_data[] = array(
   113                     "id" => $question_id,
   115                     "path" => $survey_path,
   124     protected function fillRow(array $a_set): void
   128         $this->tpl->setVariable(
"TXT_PATH", 
$lng->
txt(
"path"));
   130         if ($a_set[
"message"]) {
   131             $this->tpl->setCurrentBlock(
"message");
   132             $this->tpl->setVariable(
"TXT_MESSAGE", $a_set[
"message"]);
   133             $this->tpl->parseCurrentBlock();
   138             $this->tpl->setCurrentBlock(
"checkbox");
   139             $this->tpl->setVariable(
"ID", $a_set[
"id"]);
   140             $this->tpl->parseCurrentBlock();
   144         $this->tpl->setVariable(
"TITLE", $a_set[
"title"]);
   145         $this->tpl->setVariable(
"VALUE_PATH", implode(
"<br />", $a_set[
"path"]));
   156         foreach ($ref_ids as 
$ref_id) {
   161             if (count($path_full)) {
   162                 foreach ($path_full as 
$data) {
   163                     if (++$counter < (count($path_full) - 1)) {
   166                     $path .= 
" » ";
   167                     if ($ref_id != $data[
'ref_id']) {
   168                         $path .= $data[
'title'];
   170                         $path .= (
'<a target="_top" href="' .
   171                                   ilLink::_getLink($data[
'ref_id'], $data[
'type']) . 
'">' .
   172                                   $data[
'title'] . 
'</a>');
 
static _hasDatasets(int $survey_id)
 
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...
 
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
 
static _getAllReferences(int $id)
get all reference ids for object ID 
 
setDescription(string $a_val)
 
__construct(object $a_parent_obj, string $a_parent_cmd, SurveyQuestion $a_question)
 
static _getTitle(int $question_id)
Returns the question title of a question with a given id. 
 
getPathFull(int $a_endnode_id, int $a_startnode_id=0)
get path from a given startnode to a given endnode if startnode is not given the rootnode is startnod...
 
static _lookupTitle(int $obj_id)
 
setDefaultOrderField(string $a_defaultorderfield)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
setDefaultOrderDirection(string $a_defaultorderdirection)
 
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
 
buildPath(array $ref_ids)
Build path with deep-link. 
 
importData()
Import data from DB. 
 
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)