26 $this->slm_object = $a_slm_obj;
27 $this->node_object = null;
42 $this->parentgui = $a_parentgui;
52 return $this->parentgui;
60 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004NodeFactory.php");
72 $tree =
new ilTree($this->slm_object->getId());
73 $tree->
setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
74 $tree->setTreeTablePK(
"slm_id");
97 if (!$tree->isInTree($this->node_obj->getId()))
99 $tree->insertNode($this->node_obj->getId(), $parent_id, $target);
166 $ilTabs->setTabActive(
"sahs_organization");
168 $this->
getParentGUI()->showOrganization($this->node_object->getId(),
169 $ilCtrl->getFormAction($this), $this->node_object->getTitle(),
171 $this,
"showOrganization");
182 $ilCtrl->setParameter($this,
"highlight",
$res[
"items"]);
183 $ilCtrl->redirect($this,
"showOrganization",
"node_".
$res[
"node_id"]);
194 $ilCtrl->setParameter($this,
"highlight",
$res[
"items"]);
195 $ilCtrl->redirect($this,
"showOrganization",
"node_".
$res[
"node_id"]);
206 $ilCtrl->setParameter($this,
"highlight",
$res[
"items"]);
207 $ilCtrl->redirect($this,
"showOrganization",
"node_".
$res[
"node_id"]);
218 $ilCtrl->setParameter($this,
"highlight",
$res[
"items"]);
219 $ilCtrl->redirect($this,
"showOrganization",
"node_".
$res[
"node_id"]);
248 $ilCtrl->redirect($this,
"showOrganization");
259 $ilCtrl->redirect($this,
"showOrganization");
270 $ilCtrl->redirect($this,
"showOrganization");
280 $ilCtrl->setParameter($this,
"backcmd",
$_GET[
"backcmd"]);
281 $this->
getParentGUI()->deleteNodes($ilCtrl->getFormAction($this));
290 $ilCtrl->redirect($this,
"showOrganization");
301 $ilCtrl->redirect($this,
"showOrganization");
311 $ilLocator->addRepositoryItems(
$_GET[
"ref_id"]);
314 if (
$_GET[
"obj_id"] > 0)
316 $tree =
new ilTree($this->slm_object->getId());
317 $tree->
setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
318 $tree->setTreeTablePK(
"slm_id");
320 for( $i = 1; $i < count(
$path); $i++)
323 switch(
$path[$i][
"type"])
326 $ilCtrl->setParameterByClass(
"ilscorm2004chaptergui",
"obj_id",
328 $ilLocator->addItem(
$path[$i][
"title"],
329 $ilCtrl->getLinkTargetByClass(
"ilscorm2004chaptergui",
330 "showOrganization"),
"", 0,
$path[$i][
"type"],
335 $ilCtrl->setParameterByClass(
"ilscorm2004seqchaptergui",
"obj_id",
337 $ilLocator->addItem(
$path[$i][
"title"],
338 $ilCtrl->getLinkTargetByClass(
"ilscorm2004seqchaptergui",
339 "showOrganization"),
"", 0,
$path[$i][
"type"],
344 $ilCtrl->setParameterByClass(
"ilscorm2004scogui",
"obj_id",
346 $ilLocator->addItem(
$path[$i][
"title"],
347 $ilCtrl->getLinkTargetByClass(
"ilscorm2004scogui",
348 "showOrganization"),
"", 0,
$path[$i][
"type"],
353 $ilCtrl->setParameterByClass(
"ilscorm2004assetgui",
"obj_id",
355 $ilLocator->addItem(
$path[$i][
"title"],
356 $ilCtrl->getLinkTargetByClass(
"ilscorm2004assetgui",
357 "showOrganization"),
"", 0,
$path[$i][
"type"],
362 $ilCtrl->setParameterByClass(
"ilscorm2004pagegui",
"obj_id",
364 $ilLocator->addItem(
$path[$i][
"title"],
365 $ilCtrl->getLinkTargetByClass(
"ilscorm2004pagegui",
366 "edit"),
"", 0,
$path[$i][
"type"],
372 $ilCtrl->setParameter($this,
"obj_id",
$_GET[
"obj_id"]);
385 include_once(
"./Services/Style/classes/class.ilObjStyleSheet.php");
386 $tpl->setCurrentBlock(
"ContentStyle");
387 $tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
389 $tpl->setVariable(
"LOCATION_ADDITIONAL_STYLESHEET",
391 $tpl->parseCurrentBlock();
393 $tpl->setCurrentBlock(
"SyntaxStyle");
394 $tpl->setVariable(
"LOCATION_SYNTAX_STYLESHEET",
396 $tpl->parseCurrentBlock();
408 foreach($items as $k => $item)
415 foreach($todel as $k)
422 $ilCtrl->redirect($this, $a_return);
427 include_once(
"./Modules/LearningModule/classes/class.ilEditClipboard.php");
431 $ilCtrl->redirect($this, $a_return);
443 foreach($items as $k => $item)
450 foreach($todel as $k)
458 $ilCtrl->redirect($this, $a_return);
463 include_once(
"./Modules/LearningModule/classes/class.ilEditClipboard.php");
468 $ilCtrl->redirect($this, $a_return);
480 $ilCtrl->redirect($this,
"showOrganization",
493 $ilCtrl->redirect($this,
"showOrganization",
506 $ilCtrl->redirect($this,
"showOrganization",