37 $this->
ctrl = $DIC->ctrl();
38 $this->
lng = $DIC->language();
39 $ilCtrl = $DIC->ctrl();
40 $lng = $DIC->language();
49 "tpl.links_table_row.html",
50 "components/ILIAS/LearningModule" 52 $this->lm_id = $a_lm_id;
53 $this->lm_type = $a_lm_type;
65 protected function fillRow(array $a_set): void
70 $this->tpl->setVariable(
"TXT_PAGE_TITLE", $a_set[
"title"]);
76 $this->tpl->setVariable(
78 $ilCtrl->getLinkTargetByClass(
"illmpageobjectgui",
"edit")
81 $page_object =
new ilLMPage($a_set[
"obj_id"]);
82 $page_object->buildDom();
83 $int_links = $page_object->getInternalLinks();
85 foreach ($int_links as $link) {
86 $target = $link[
"Target"];
87 if (substr($target, 0, 4) ==
"il__") {
88 $target_arr = explode(
"_", $target);
89 $target_id = $target_arr[count($target_arr) - 1];
90 $type = $link[
"Type"];
94 $this->tpl->setCurrentBlock(
"link");
95 $this->tpl->setVariable(
"TXT_LINK_TYPE",
$lng->
txt(
"pg"));
101 $this->tpl->setVariable(
106 $this->tpl->setVariable(
108 "<strong>" .
$lng->
txt(
"cont_target_missing") .
" [" . $target_id .
"]" .
"</strong>" 111 $this->tpl->parseCurrentBlock();
114 case "StructureObject":
115 $this->tpl->setCurrentBlock(
"link");
116 $this->tpl->setVariable(
"TXT_LINK_TYPE",
$lng->
txt(
"st"));
122 $this->tpl->setVariable(
127 $this->tpl->setVariable(
129 "<strong>" .
$lng->
txt(
"cont_target_missing") .
" [" . $target_id .
"]" .
"</strong>" 132 $this->tpl->parseCurrentBlock();
136 $this->tpl->setCurrentBlock(
"link");
137 $this->tpl->setVariable(
"TXT_LINK_TYPE",
$lng->
txt(
"cont_term"));
139 $this->tpl->setVariable(
144 $this->tpl->setVariable(
146 "<strong>" .
$lng->
txt(
"cont_target_missing") .
" [" . $target_id .
"]" .
"</strong>" 149 $this->tpl->parseCurrentBlock();
153 $this->tpl->setCurrentBlock(
"link");
154 $this->tpl->setVariable(
"TXT_LINK_TYPE",
$lng->
txt(
"mob"));
156 $this->tpl->setVariable(
161 $this->tpl->setVariable(
163 "<strong>" .
$lng->
txt(
"cont_target_missing") .
" [" . $target_id .
"]" .
"</strong>" 166 $this->tpl->parseCurrentBlock();
169 case "RepositoryItem":
170 $this->tpl->setCurrentBlock(
"link");
171 $this->tpl->setVariable(
"TXT_LINK_TYPE",
$lng->
txt(
"cont_repository_item"));
175 $this->tpl->setVariable(
178 $lng->
txt((
"obj_" . $obj_type))
182 $this->tpl->setVariable(
184 "<strong>" .
$lng->
txt(
"cont_target_missing") .
" [" . $target_id .
"]" .
"</strong>" 187 $this->tpl->parseCurrentBlock();
191 $type = $link[
"Type"];
195 $this->tpl->setVariable(
"TXT_LINK_TYPE",
$lng->
txt(
"pg"));
197 case "StructureObject":
198 $this->tpl->setVariable(
"TXT_LINK_TYPE",
$lng->
txt(
"st"));
201 $this->tpl->setVariable(
"TXT_LINK_TYPE",
$lng->
txt(
"cont_term"));
204 $this->tpl->setVariable(
"TXT_LINK_TYPE",
$lng->
txt(
"mob"));
206 case "RepositoryItem":
207 $this->tpl->setVariable(
"TXT_LINK_TYPE",
$lng->
txt(
"cont_repository_item"));
211 $this->tpl->setCurrentBlock(
"link");
212 $this->tpl->setVariable(
214 "<strong>" .
$lng->
txt(
"cont_target_missing") .
" [" . $target .
"]" .
"</strong>" 216 $this->tpl->parseCurrentBlock();
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)
__construct(object $a_parent_obj, string $a_parent_cmd, int $a_lm_id, string $a_lm_type)
static _exists(int $a_id)
checks whether a glossary term with specified id exists or not
setParameterByClass(string $a_class, string $a_parameter, $a_value)
static _lookupObjId(int $ref_id)
static _lookupTitle(int $a_obj_id)
static _exists(int $id, bool $reference=false, ?string $type=null)
checks if an object exists in object_data
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _lookupTitle(int $obj_id)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
static _lookGlossaryTerm(int $term_id)
get glossary term
static getPagesWithLinksList(int $a_lm_id, string $a_par_type)
Get all pages of lm that contain any internal links.
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
static _exists(int $a_id)
checks wether a lm content object with specified id exists or not
__construct(Container $dic, ilPlugin $plugin)
static _lookupContObjID(int $a_id)
get learning module id for lm object
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)
static _lookupType(int $id, bool $reference=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setEnableHeader(bool $a_enableheader)