4include_once(
"./Services/UIComponent/Explorer2/classes/class.ilTreeExplorerGUI.php");
19 public function __construct($a_parent_obj, $a_parent_cmd, $a_slm)
26 $tree->setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
27 $tree->setTreeTablePK(
"slm_id");
29 parent::__construct(
"scorm_ed_exp", $a_parent_obj, $a_parent_cmd,
$tree);
48 return $this->slm->getTitle();
51 return $a_node[
"title"];
86 return $this->slm->getTitle();
89 return parent::getNodeIconAlt($a_node);
100 if ($a_node[
"child"] ==
$_GET[
"obj_id"] ||
120 $ilCtrl->setParameterByClass(
"ilobjscorm2004learningmodulegui",
"obj_id", $a_node[
"child"]);
121 $ret =
$ilCtrl->getLinkTargetByClass(
"ilobjscorm2004learningmodulegui",
"showOrganization");
122 $ilCtrl->setParameterByClass(
"ilobjscorm2004learningmodulegui",
"obj_id",
$_GET[
"obj_id"]);
126 switch($a_node[
"type"])
129 $ilCtrl->setParameterByClass(
"ilScorm2004PageNodeGUI",
"obj_id", $a_node[
"child"]);
130 $ret =
$ilCtrl->getLinkTargetByClass(
"ilScorm2004PageNodeGUI",
"edit");
131 $ilCtrl->setParameterByClass(
"ilScorm2004PageNodeGUI",
"obj_id",
$_GET[
"obj_id"]);
136 $ilCtrl->setParameterByClass(
"ilScorm2004ChapterGUI",
"obj_id", $a_node[
"child"]);
137 $ret =
$ilCtrl->getLinkTargetByClass(
"ilScorm2004ChapterGUI",
"showOrganization");
138 $ilCtrl->setParameterByClass(
"ilScorm2004ChapterGUI",
"obj_id",
$_GET[
"obj_id"]);
143 $ilCtrl->setParameterByClass(
"ilScorm2004ScoGUI",
"obj_id", $a_node[
"child"]);
144 $ret =
$ilCtrl->getLinkTargetByClass(
"ilScorm2004ScoGUI",
"showOrganization");
145 $ilCtrl->setParameterByClass(
"ilScorm2004ScoGUI",
"obj_id",
$_GET[
"obj_id"]);
150 $ilCtrl->setParameterByClass(
"ilScorm2004AssetGUI",
"obj_id", $a_node[
"child"]);
151 $ret =
$ilCtrl->getLinkTargetByClass(
"ilScorm2004AssetGUI",
"showOrganization");
152 $ilCtrl->setParameterByClass(
"ilScorm2004AssetGUI",
"obj_id",
$_GET[
"obj_id"]);
setSkipRootNode($a_val)
Set skip root node.
SCORM editor explorer GUI class.
isNodeHighlighted($a_node)
Is node highlighted?
getNodeContent($a_node)
Get node content.
__construct($a_parent_obj, $a_parent_cmd, $a_slm)
Constructor.
getNodeIconAlt($a_node)
Get node icon alt text.
getNodeHref($a_node)
Get href for node.
getNodeIcon($a_node)
Get node icon.
Explorer class that works on tree objects (Services/Tree)
getRootNode()
Get root node.
getNodeId($a_node)
Get id for node.
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)