4 include_once(
"./Services/UIComponent/Explorer2/classes/class.ilTreeExplorerGUI.php");
24 public function __construct($a_parent_obj, $a_parent_cmd, $a_slm)
28 $this->
user = $DIC->user();
29 $this->lng = $DIC->language();
30 $this->ctrl = $DIC->ctrl();
36 $tree->setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
37 $tree->setTreeTablePK(
"slm_id");
57 return $this->slm->getTitle();
60 return $a_node[
"title"];
91 return $this->slm->getTitle();
94 return parent::getNodeIconAlt($a_node);
105 if ($a_node[
"child"] ==
$_GET[
"obj_id"] ||
123 $ilCtrl->setParameterByClass(
"ilobjscorm2004learningmodulegui",
"obj_id", $a_node[
"child"]);
124 $ret =
$ilCtrl->getLinkTargetByClass([
"ilSAHSEditGUI",
"ilObjSCORM2004LearningModuleGUI",
"ilobjscorm2004learningmodulegui"],
"showOrganization");
125 $ilCtrl->setParameterByClass(
"ilobjscorm2004learningmodulegui",
"obj_id",
$_GET[
"obj_id"]);
129 switch ($a_node[
"type"]) {
131 $ilCtrl->setParameterByClass(
"ilScorm2004PageNodeGUI",
"obj_id", $a_node[
"child"]);
132 $ret =
$ilCtrl->getLinkTargetByClass([
"ilSAHSEditGUI",
"ilObjSCORM2004LearningModuleGUI",
"ilScorm2004PageNodeGUI"],
"edit");
133 $ilCtrl->setParameterByClass(
"ilScorm2004PageNodeGUI",
"obj_id",
$_GET[
"obj_id"]);
138 $ilCtrl->setParameterByClass(
"ilScorm2004ChapterGUI",
"obj_id", $a_node[
"child"]);
139 $ret =
$ilCtrl->getLinkTargetByClass([
"ilSAHSEditGUI",
"ilObjSCORM2004LearningModuleGUI",
"ilScorm2004ChapterGUI"],
"showOrganization");
140 $ilCtrl->setParameterByClass(
"ilScorm2004ChapterGUI",
"obj_id",
$_GET[
"obj_id"]);
145 $ilCtrl->setParameterByClass(
"ilScorm2004ScoGUI",
"obj_id", $a_node[
"child"]);
146 $ret =
$ilCtrl->getLinkTargetByClass([
"ilSAHSEditGUI",
"ilObjSCORM2004LearningModuleGUI",
"ilScorm2004ScoGUI"],
"showOrganization");
147 $ilCtrl->setParameterByClass(
"ilScorm2004ScoGUI",
"obj_id",
$_GET[
"obj_id"]);
152 $ilCtrl->setParameterByClass(
"ilScorm2004AssetGUI",
"obj_id", $a_node[
"child"]);
153 $ret =
$ilCtrl->getLinkTargetByClass([
"ilSAHSEditGUI",
"ilObjSCORM2004LearningModuleGUI",
"ilScorm2004AssetGUI"],
"showOrganization");
154 $ilCtrl->setParameterByClass(
"ilScorm2004AssetGUI",
"obj_id",
$_GET[
"obj_id"]);
getNodeContent($a_node)
Get node content.
setSkipRootNode($a_val)
Set skip root node.
isNodeHighlighted($a_node)
Is node highlighted?
__construct($a_parent_obj, $a_parent_cmd, $a_slm)
Constructor.
getNodeIconAlt($a_node)
Get node icon alt text.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
getNodeId($a_node)
Get id for node.
getRootNode()
Get root node.
SCORM editor explorer GUI class.
getNodeIcon($a_node)
Get node icon.
Explorer class that works on tree objects (Services/Tree)
__construct(Container $dic, ilPlugin $plugin)
getNodeHref($a_node)
Get href for node.