Public Member Functions | |
ilLMEditorExplorer ($a_target, &$a_lm_obj, $a_gui_class) | |
Constructor public. | |
formatHeader (&$tpl, $a_obj_id, $a_option) | |
overwritten method from base class public | |
buildTitle ($a_title, $a_id, $a_type) | |
standard implementation for title, maybe overwritten by derived classes | |
buildLinkTarget ($a_node_id, $a_type) | |
build link target | |
getNodeStyleClass ($a_id, $a_type) | |
get style class for node |
Definition at line 34 of file class.ilLMEditorExplorer.php.
ilLMEditorExplorer::buildLinkTarget | ( | $ | a_node_id, | |
$ | a_type | |||
) |
build link target
Reimplemented from ilExplorer.
Definition at line 130 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::buildTitle | ( | $ | a_title, | |
$ | a_id, | |||
$ | a_type | |||
) |
standard implementation for title, maybe overwritten by derived classes
Reimplemented from ilExplorer.
Definition at line 101 of file class.ilLMEditorExplorer.php.
References ilStructureObject::_getPresentationTitle().
{ //echo "<br>-$a_title-$a_type-$a_id-"; if ($a_type == "st") { return ilStructureObject::_getPresentationTitle($a_id, $this->lm_obj->isActiveNumbering()); } return $a_title; /* if ($this->lm_obj->getTOCMode() == "chapters" || $a_type != "pg") { return $a_title; } else { if ($a_type == "pg") { return ilLMPageObject::_getPresentationTitle($a_id, $this->lm_obj->getPageHeader(), $this->lm_obj->isActiveNumbering()); } }*/ }
ilLMEditorExplorer::formatHeader | ( | &$ | tpl, | |
$ | a_obj_id, | |||
$ | a_option | |||
) |
overwritten method from base class public
integer | obj_id | |
integer | array options |
Reimplemented from ilLMExplorer.
Definition at line 60 of file class.ilLMEditorExplorer.php.
References ilExplorer::$ilias, $lng, $tpl, ilUtil::getImagePath(), and ilUtil::shortenText().
{ global $lng, $ilias; $tpl->setCurrentBlock("icon"); $tpl->setVariable("ICON_IMAGE" , ilUtil::getImagePath("icon_lm.gif")); $tpl->setVariable("TXT_ALT_IMG", $lng->txt("obj_".$this->lm_obj->getType())); $tpl->parseCurrentBlock(); $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(); $tpl->touchBlock("element"); }
ilLMEditorExplorer::getNodeStyleClass | ( | $ | a_id, | |
$ | a_type | |||
) |
get style class for node
Reimplemented from ilExplorer.
Definition at line 152 of file class.ilLMEditorExplorer.php.
References ilLMObject::_lookupActive(), and ilPageObject::_lookupContainsDeactivatedElements().
{ include_once("content/classes/class.ilLMObject.php"); $active = ilLMObject::_lookupActive($a_id); if (!$active) { return "il_PageDisabled"; } else { include_once("content/classes/Pages/class.ilPageObject.php"); $contains_dis = ilPageObject::_lookupContainsDeactivatedElements($a_id, $this->lm_obj->getType()); if ($contains_dis) { return "il_PageDeactivatedElements"; } } return ""; }
ilLMEditorExplorer::ilLMEditorExplorer | ( | $ | a_target, | |
&$ | a_lm_obj, | |||
$ | a_gui_class | |||
) |
Constructor public.
string | scriptname | |
int | user_id |
Definition at line 42 of file class.ilLMEditorExplorer.php.
References $ilCtrl, and ilLMExplorer::ilLMExplorer().
{ 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()); }