24 include_once(
"Services/Table/classes/class.ilTable2GUI.php");
44 $this->ctrl = $DIC->ctrl();
45 $this->lng = $DIC->language();
47 $lng = $DIC->language();
49 parent::__construct($a_parent_obj, $a_parent_cmd);
56 "tpl.links_table_row.html",
57 "Modules/LearningModule" 59 $this->lm_id = $a_lm_id;
60 $this->lm_type = $a_lm_type;
84 $this->tpl->setVariable(
"TXT_PAGE_TITLE", $a_set[
"title"]);
90 $this->tpl->setVariable(
92 $ilCtrl->getLinkTargetByClass(
"illmpageobjectgui",
"edit")
95 include_once(
"./Modules/LearningModule/classes/class.ilLMPage.php");
96 $page_object =
new ilLMPage($a_set[
"obj_id"]);
97 $page_object->buildDom();
98 $int_links = $page_object->getInternalLinks();
100 foreach ($int_links as $link) {
102 if (substr(
$target, 0, 4) ==
"il__") {
105 $type = $link[
"Type"];
109 $this->tpl->setCurrentBlock(
"link");
110 $this->tpl->setVariable(
"TXT_LINK_TYPE",
$lng->txt(
"pg"));
113 $add_str = ($lm_id != $this->lm_id)
116 $this->tpl->setVariable(
121 $this->tpl->setVariable(
123 "<b>" .
$lng->txt(
"cont_target_missing") .
" [" .
$target_id .
"]" .
"</b>" 126 $this->tpl->parseCurrentBlock();
129 case "StructureObject":
130 $this->tpl->setCurrentBlock(
"link");
131 $this->tpl->setVariable(
"TXT_LINK_TYPE",
$lng->txt(
"st"));
134 $add_str = ($lm_id != $this->lm_id)
137 $this->tpl->setVariable(
142 $this->tpl->setVariable(
144 "<b>" .
$lng->txt(
"cont_target_missing") .
" [" .
$target_id .
"]" .
"</b>" 147 $this->tpl->parseCurrentBlock();
151 $this->tpl->setCurrentBlock(
"link");
152 $this->tpl->setVariable(
"TXT_LINK_TYPE",
$lng->txt(
"cont_term"));
153 include_once(
"./Modules/Glossary/classes/class.ilGlossaryTerm.php");
155 $this->tpl->setVariable(
160 $this->tpl->setVariable(
162 "<b>" .
$lng->txt(
"cont_target_missing") .
" [" .
$target_id .
"]" .
"</b>" 165 $this->tpl->parseCurrentBlock();
169 $this->tpl->setCurrentBlock(
"link");
170 $this->tpl->setVariable(
"TXT_LINK_TYPE",
$lng->txt(
"mob"));
172 $this->tpl->setVariable(
177 $this->tpl->setVariable(
179 "<b>" .
$lng->txt(
"cont_target_missing") .
" [" .
$target_id .
"]" .
"</b>" 182 $this->tpl->parseCurrentBlock();
185 case "RepositoryItem":
186 $this->tpl->setCurrentBlock(
"link");
187 $this->tpl->setVariable(
"TXT_LINK_TYPE",
$lng->txt(
"cont_repository_item"));
191 $this->tpl->setVariable(
194 $lng->txt((
"obj_" . $obj_type))
198 $this->tpl->setVariable(
200 "<b>" .
$lng->txt(
"cont_target_missing") .
" [" .
$target_id .
"]" .
"</b>" 203 $this->tpl->parseCurrentBlock();
208 $type = $link[
"Type"];
212 $this->tpl->setVariable(
"TXT_LINK_TYPE",
$lng->txt(
"pg"));
214 case "StructureObject":
215 $this->tpl->setVariable(
"TXT_LINK_TYPE",
$lng->txt(
"st"));
218 $this->tpl->setVariable(
"TXT_LINK_TYPE",
$lng->txt(
"cont_term"));
221 $this->tpl->setVariable(
"TXT_LINK_TYPE",
$lng->txt(
"mob"));
223 case "RepositoryItem":
224 $this->tpl->setVariable(
"TXT_LINK_TYPE",
$lng->txt(
"cont_repository_item"));
228 $this->tpl->setCurrentBlock(
"link");
229 $this->tpl->setVariable(
231 "<b>" .
$lng->txt(
"cont_target_missing") .
" [" .
$target .
"]" .
"</b>" 233 $this->tpl->parseCurrentBlock();
static _exists($a_id, $a_reference=false, $a_type=null)
checks if an object exists in object_data
static _exists($a_id)
checks wether a lm content object with specified id exists or not
static _lookupTitle($a_id)
lookup object title
static _lookupContObjID($a_id)
get learning module / digibook id for lm object
static _lookupTitle($a_obj_id)
Lookup title.
__construct( $a_parent_obj, $a_parent_cmd, $a_lm_id, $a_lm_type)
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
static _exists($a_id)
checks wether a glossary term with specified id exists or not
fillRow($a_set)
Standard Version of Fill Row.
TableGUI class for (broken) links in learning module.
static _lookupObjId($a_id)
static getPagesWithLinksList($a_lm_id, $a_par_type)
Get all pages of lm that contain any internal links.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
static _lookupType($a_id, $a_reference=false)
lookup object type
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setEnableHeader($a_enableheader)
Set Enable Header.
getLinks()
Get pages incl.
static _lookGlossaryTerm($term_id)
get glossary term
Extension of ilPageObject for learning modules.