58 $this->lng =
$DIC->language();
59 $this->ctrl =
$DIC->ctrl();
60 $this->tpl =
$DIC[
"tpl"];
61 $this->tabs =
$DIC->tabs();
62 $this->locator =
$DIC[
"ilLocator"];
63 $this->
user = $DIC->user();
64 $this->slm_object = $a_slm_obj;
65 $this->node_object =
null;
79 $this->parentgui = $a_parentgui;
89 return $this->parentgui;
97 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004NodeFactory.php");
112 $tree =
new ilTree($this->slm_object->getId());
113 $tree->setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
114 $tree->setTreeTablePK(
"slm_id");
137 if (!$tree->isInTree($this->node_obj->getId())) {
138 $tree->insertNode($this->node_obj->getId(), $parent_id,
$target);
208 $ilTabs->setTabActive(
"sahs_organization");
211 $this->node_object->getId(),
213 $this->node_object->getTitle(),
228 $ilCtrl->setParameter($this,
"highlight",
$res[
"items"]);
229 $ilCtrl->redirect($this,
"showOrganization",
"node_" .
$res[
"node_id"]);
240 $ilCtrl->setParameter($this,
"highlight",
$res[
"items"]);
241 $ilCtrl->redirect($this,
"showOrganization",
"node_" .
$res[
"node_id"]);
252 $ilCtrl->setParameter($this,
"highlight",
$res[
"items"]);
253 $ilCtrl->redirect($this,
"showOrganization",
"node_" .
$res[
"node_id"]);
264 $ilCtrl->setParameter($this,
"highlight",
$res[
"items"]);
265 $ilCtrl->redirect($this,
"showOrganization",
"node_" .
$res[
"node_id"]);
294 $ilCtrl->redirect($this,
"showOrganization");
305 $ilCtrl->redirect($this,
"showOrganization");
317 $ilCtrl->redirect($this,
"showOrganization");
327 $ilCtrl->setParameter($this,
"backcmd",
$_GET[
"backcmd"]);
337 $ilCtrl->redirect($this,
"showOrganization");
348 $ilCtrl->redirect($this,
"showOrganization");
360 $ilLocator->addRepositoryItems(
$_GET[
"ref_id"]);
363 if (
$_GET[
"obj_id"] > 0) {
364 $tree =
new ilTree($this->slm_object->getId());
365 $tree->setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
366 $tree->setTreeTablePK(
"slm_id");
373 "ilscorm2004chaptergui",
380 "ilscorm2004chaptergui",
392 "ilscorm2004seqchaptergui",
399 "ilscorm2004seqchaptergui",
430 "ilscorm2004assetgui",
437 "ilscorm2004assetgui",
449 "ilscorm2004pagegui",
456 "ilscorm2004pagegui",
468 $ilCtrl->setParameter($this,
"obj_id",
$_GET[
"obj_id"]);
481 include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
482 $tpl->setCurrentBlock(
"ContentStyle");
484 "LOCATION_CONTENT_STYLESHEET",
488 "LOCATION_ADDITIONAL_STYLESHEET",
491 $tpl->parseCurrentBlock();
493 $tpl->setCurrentBlock(
"SyntaxStyle");
495 "LOCATION_SYNTAX_STYLESHEET",
498 $tpl->parseCurrentBlock();
504 public function copyItems($a_return =
"showOrganization")
511 foreach ($items as $k => $item) {
516 foreach ($todel as $k) {
521 $ilCtrl->redirect($this, $a_return);
526 include_once(
"./Modules/LearningModule/classes/class.ilEditClipboard.php");
530 $ilCtrl->redirect($this, $a_return);
536 public function cutItems($a_return =
"showOrganization")
543 foreach ($items as $k => $item) {
548 foreach ($todel as $k) {
554 $ilCtrl->redirect($this, $a_return);
559 include_once(
"./Modules/LearningModule/classes/class.ilEditClipboard.php");
564 $ilCtrl->redirect($this, $a_return);
An exception for terminatinating execution or to throw for unit testing.
static setAction($a_action)
static getSyntaxStylePath()
get syntax style path
static getPlaceHolderStylePath()
get placeholder style path (for Page Layouts)
static getContentStylePath($a_style_id, $add_random=true)
get content style path
static getInstance($a_slm_object, $a_id=0, $a_halt=true)
Class ilSCORM2004NodeGUI.
insertChapter()
Insert Chapter.
copyItems($a_return="showOrganization")
Copy items to clipboard.
insertAssetClip()
Insert assets from clipboard.
getNodeObject($a_node_id)
Get node object (chapter/sco/page)
collapseAll()
Collapse all.
cutItems($a_return="showOrganization")
Copy items to clipboard, then cut them from the current tree.
cancelDelete()
cancel delete
__construct($a_slm_obj, $a_node_id=0)
constructor
insertPageClip()
Insert pages from clipboard.
insertSpecialPage()
Insert special page.
showOrganization()
Confirm deletion screen (delete page or structure objects)
setContentStyle()
Set content style sheet.
setParentGUI($a_parentgui)
Set Parent GUI class (ilObjSCORM2004LearningModuleGUI).
deleteNodes()
Delete nodes in the hierarchy.
insertLMChapterClip()
Insert scos from clipboard.
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
saveAllTitles()
Save Titles.
confirmedDelete()
confirmed delete
setLocator()
Set Locator Items.
insertTemplateGUI()
Insert Page with Layout.
putInTree($a_parent_id, $a_target)
put this object into content object tree
insertAsset()
Insert Asset.
insertScoClip()
Insert scos from clipboard.
static uniqueTypesCheck($a_items)
Check for unique types (all pages or all chapters or all scos)
static insertAssetClip($a_slm_obj, $a_type="ass")
Insert assets from clipboard.
static clipboardCopy($a_slm_obj_id, $a_ids)
Copy a set of chapters/pages/scos into the clipboard.
static insertPageClip($a_slm_obj)
Insert pages from clipboard.
static insertScoClip($a_slm_obj)
Insert scos from clipboard.
static clipboardCut($a_slm_obj_id, $a_ids)
Cut and copy a set of chapters/pages into the clipboard.
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static stripSlashesArray($a_arr, $a_strip_html=true, $a_allow="")
Strip slashes from array.
foreach($_POST as $key=> $value) $res