Public Member Functions | |
ilLMEditorExplorer ($a_target, &$a_lm_obj, $a_gui_class) | |
Constructor public. | |
formatHeader ($a_obj_id, $a_option) | |
overwritten method from base class public | |
buildLinkTarget ($a_node_id, $a_type) | |
build link target |
Definition at line 35 of file class.ilLMEditorExplorer.php.
ilLMEditorExplorer::buildLinkTarget | ( | $ | a_node_id, | |
$ | a_type | |||
) |
build link target
Reimplemented from ilExplorer.
Definition at line 99 of file class.ilLMEditorExplorer.php.
{ switch($a_type) { case "pg": $this->ctrl->setParameterByClass("ilLMPageObjectGUI", "obj_id", $a_node_id); return $this->ctrl->getLinkTargetByClass("ilLMPageObjectGUI", "view", array($this->gui_class)); break; case "st": $this->ctrl->setParameterByClass("ilStructureObjectGUI", "obj_id", $a_node_id); return $this->ctrl->getLinkTargetByClass("ilStructureObjectGUI", "view", array($this->gui_class)); break; } }
ilLMEditorExplorer::formatHeader | ( | $ | a_obj_id, | |
$ | a_option | |||
) |
overwritten method from base class public
integer | obj_id | |
integer | array options |
Reimplemented from ilLMExplorer.
Definition at line 61 of file class.ilLMEditorExplorer.php.
References ilExplorer::$ilias, $lng, $tpl, and ilUtil::shortenText().
{ global $lng, $ilias; $tpl = new ilTemplate("tpl.tree.html", true, true); $tpl->setCurrentBlock("link"); $tpl->setVariable("TITLE", ilUtil::shortenText($this->lm_obj->getTitle(), $this->textwidth, true)); if ($this->lm_obj->getType() == "lm") { $this->ctrl->setParameterByClass("ilObjLearningModuleGUI", "obj_id", ""); $link = $this->ctrl->getLinkTargetByClass("ilObjLearningModuleGUI", "properties"); } else { $this->ctrl->setParameterByClass("ilObjDlBookGUI", "obj_id", ""); $link = $this->ctrl->getLinkTargetByClass("ilObjDlBookGUI", "properties"); } $tpl->setVariable("LINK_TARGET", $link); $tpl->setVariable("TARGET", " target=\"".$this->frame_target."\""); $tpl->parseCurrentBlock(); $tpl->setCurrentBlock("row"); $tpl->parseCurrentBlock(); $this->output[] = $tpl->get(); }
ilLMEditorExplorer::ilLMEditorExplorer | ( | $ | a_target, | |
&$ | a_lm_obj, | |||
$ | a_gui_class | |||
) |
Constructor public.
string | scriptname | |
int | user_id |
Definition at line 43 of file class.ilLMEditorExplorer.php.
References $ilCtrl, ilLMExplorer::ilLMExplorer(), and ilExplorer::setExpandTarget().
{ global $ilCtrl; $this->ctrl =& $ilCtrl; $this->gui_class = $a_gui_class; parent::ilLMExplorer($a_target, $a_lm_obj); $this->setExpandTarget("lm_edit.php?cmd=explorer&ref_id=".$this->lm_obj->getRefId()); }