24include_once(
"Services/Table/classes/class.ilTable2GUI.php");
 
   44        $this->ctrl = 
$DIC->ctrl();
 
   45        $this->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();
 
An exception for terminatinating execution or to throw for unit testing.
static _lookGlossaryTerm($term_id)
get glossary term
static _exists($a_id)
checks wether a glossary term with specified id exists or not
static _lookupContObjID($a_id)
get learning module / digibook id for lm object
static _lookupTitle($a_obj_id)
Lookup title.
static _exists($a_id)
checks wether a lm content object with specified id exists or not
static getPagesWithLinksList($a_lm_id, $a_par_type)
Get all pages of lm that contain any internal links.
Extension of ilPageObject for learning modules.
TableGUI class for (broken) links in learning module.
fillRow($a_set)
Standard Version of Fill Row.
getLinks()
Get pages incl.
__construct( $a_parent_obj, $a_parent_cmd, $a_lm_id, $a_lm_type)
static _lookupObjId($a_id)
static _lookupTitle($a_id)
lookup object title
static _exists($a_id, $a_reference=false, $a_type=null)
checks if an object exists in object_data@access public
static _lookupType($a_id, $a_reference=false)
lookup object type
setEnableHeader($a_enableheader)
Set Enable Header.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
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.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.