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);
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static getPlaceHolderStylePath()
get placeholder style path (for Page Layouts)
static clipboardCopy($a_slm_obj_id, $a_ids)
Copy a set of chapters/pages/scos into the clipboard.
setParentGUI($a_parentgui)
Set Parent GUI class (ilObjSCORM2004LearningModuleGUI).
insertAsset()
Insert Asset.
Class ilSCORM2004NodeGUI.
__construct($a_slm_obj, $a_node_id=0)
constructor
static clipboardCut($a_slm_obj_id, $a_ids)
Cut and copy a set of chapters/pages into the clipboard.
saveAllTitles()
Save Titles.
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
static insertPageClip($a_slm_obj)
Insert pages from clipboard.
setLocator()
Set Locator Items.
static insertScoClip($a_slm_obj)
Insert scos from clipboard.
getNodeObject($a_node_id)
Get node object (chapter/sco/page)
insertScoClip()
Insert scos from clipboard.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
cancelDelete()
cancel delete
cutItems($a_return="showOrganization")
Copy items to clipboard, then cut them from the current tree.
foreach($_POST as $key=> $value) $res
static getInstance($a_slm_object, $a_id=0, $a_halt=true)
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
insertPageClip()
Insert pages from clipboard.
insertLMChapterClip()
Insert scos from clipboard.
confirmedDelete()
confirmed delete
putInTree($a_parent_id, $a_target)
put this object into content object tree
showOrganization()
Confirm deletion screen (delete page or structure objects)
setTableNames($a_table_tree, $a_table_obj_data, $a_table_obj_reference="")
set table names The primary key of the table containing your object_data must be 'obj_id' You may use...
static getSyntaxStylePath()
get syntax style path
static uniqueTypesCheck($a_items)
Check for unique types (all pages or all chapters or all scos)
static getContentStylePath($a_style_id, $add_random=true)
get content style path
insertAssetClip()
Insert assets from clipboard.
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
Create styles array
The data for the language used.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static stripSlashesArray($a_arr, $a_strip_html=true, $a_allow="")
Strip slashes from array.
deleteNodes()
Delete nodes in the hierarchy.
insertSpecialPage()
Insert special page.
copyItems($a_return="showOrganization")
Copy items to clipboard.
static setAction($a_action)
setContentStyle()
Set content style sheet.
insertTemplateGUI()
Insert Page with Layout.
static insertAssetClip($a_slm_obj, $a_type="ass")
Insert assets from clipboard.
insertChapter()
Insert Chapter.
collapseAll()
Collapse all.