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",
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.
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)
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.
static getContentStylePath($a_style_id)
get content style path
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.