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/Content/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",
An exception for terminatinating execution or to throw for unit testing.
static setAction($a_action)
static getSyntaxStylePath()
get syntax style path
static getContentStylePath($a_style_id)
get content style path
static getPlaceHolderStylePath()
get placeholder style path (for Page Layouts)
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 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.