47 $this->slm_object = $a_slm_obj;
48 $this->node_object = null;
63 $this->parentgui = $a_parentgui;
73 return $this->parentgui;
81 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004NodeFactory.php");
93 $tree =
new ilTree($this->slm_object->getId());
94 $tree->
setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
95 $tree->setTreeTablePK(
"slm_id");
118 if (!$tree->isInTree($this->node_obj->getId()))
120 $tree->insertNode($this->node_obj->getId(), $parent_id, $target);
187 $ilTabs->setTabActive(
"sahs_organization");
189 $this->
getParentGUI()->showOrganization($this->node_object->getId(),
190 $ilCtrl->getFormAction($this), $this->node_object->getTitle(),
192 $this,
"showOrganization");
203 $ilCtrl->setParameter($this,
"highlight",
$res[
"items"]);
204 $ilCtrl->redirect($this,
"showOrganization",
"node_".
$res[
"node_id"]);
215 $ilCtrl->setParameter($this,
"highlight",
$res[
"items"]);
216 $ilCtrl->redirect($this,
"showOrganization",
"node_".
$res[
"node_id"]);
227 $ilCtrl->setParameter($this,
"highlight",
$res[
"items"]);
228 $ilCtrl->redirect($this,
"showOrganization",
"node_".
$res[
"node_id"]);
250 $ilCtrl->redirect($this,
"showOrganization");
261 $ilCtrl->redirect($this,
"showOrganization");
272 $ilCtrl->redirect($this,
"showOrganization");
282 $ilCtrl->setParameter($this,
"backcmd",
$_GET[
"backcmd"]);
283 $this->
getParentGUI()->deleteNodes($ilCtrl->getFormAction($this));
292 $ilCtrl->redirect($this,
"showOrganization");
303 $ilCtrl->redirect($this,
"showOrganization");
313 $ilLocator->addRepositoryItems(
$_GET[
"ref_id"]);
316 if (
$_GET[
"obj_id"] > 0)
318 $tree =
new ilTree($this->slm_object->getId());
319 $tree->
setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
320 $tree->setTreeTablePK(
"slm_id");
322 for( $i = 1; $i < count(
$path); $i++)
325 switch(
$path[$i][
"type"])
328 $ilCtrl->setParameterByClass(
"ilscorm2004chaptergui",
"obj_id",
330 $ilLocator->addItem(
$path[$i][
"title"],
331 $ilCtrl->getLinkTargetByClass(
"ilscorm2004chaptergui",
332 "showOrganization"),
"", 0,
$path[$i][
"type"],
337 $ilCtrl->setParameterByClass(
"ilscorm2004seqchaptergui",
"obj_id",
339 $ilLocator->addItem(
$path[$i][
"title"],
340 $ilCtrl->getLinkTargetByClass(
"ilscorm2004seqchaptergui",
341 "showOrganization"),
"", 0,
$path[$i][
"type"],
346 $ilCtrl->setParameterByClass(
"ilscorm2004scogui",
"obj_id",
348 $ilLocator->addItem(
$path[$i][
"title"],
349 $ilCtrl->getLinkTargetByClass(
"ilscorm2004scogui",
350 "showOrganization"),
"", 0,
$path[$i][
"type"],
357 include_once(
"./Services/Style/classes/class.ilObjStyleSheet.php");
358 $tpl->setCurrentBlock(
"ContentStyle");
359 $tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
361 $tpl->setVariable(
"LOCATION_ADDITIONAL_STYLESHEET",
363 $tpl->parseCurrentBlock();
365 $tpl->setCurrentBlock(
"SyntaxStyle");
366 $tpl->setVariable(
"LOCATION_SYNTAX_STYLESHEET",
368 $tpl->parseCurrentBlock();
370 $ilCtrl->setParameterByClass(
"ilscorm2004pagegui",
"obj_id",
372 $ilLocator->addItem(
$path[$i][
"title"],
373 $ilCtrl->getLinkTargetByClass(
"ilscorm2004pagegui",
374 "edit"),
"", 0,
$path[$i][
"type"],
380 $ilCtrl->setParameter($this,
"obj_id",
$_GET[
"obj_id"]);
394 foreach($items as $k => $item)
401 foreach($todel as $k)
407 ilUtil::sendInfo($lng->txt(
"sahs_choose_pages_or_chapters_or_scos_only"),
true);
408 $ilCtrl->redirect($this, $a_return);
413 include_once(
"./Modules/LearningModule/classes/class.ilEditClipboard.php");
417 $ilCtrl->redirect($this, $a_return);
429 foreach($items as $k => $item)
436 foreach($todel as $k)
443 ilUtil::sendInfo($lng->txt(
"sahs_choose_pages_or_chapters_or_scos_only"),
true);
444 $ilCtrl->redirect($this, $a_return);
449 include_once(
"./Modules/LearningModule/classes/class.ilEditClipboard.php");
454 $ilCtrl->redirect($this, $a_return);
466 $ilCtrl->redirect($this,
"showOrganization",
479 $ilCtrl->redirect($this,
"showOrganization",