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");
171 $ilTabs->setTabActive(
"sahs_organization");
174 $this->node_object->getId(),
176 $this->node_object->getTitle(),
191 $ilCtrl->setParameter($this,
"highlight",
$res[
"items"]);
192 $ilCtrl->redirect($this,
"showOrganization",
"node_" .
$res[
"node_id"]);
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"]);
257 $ilCtrl->redirect($this,
"showOrganization");
268 $ilCtrl->redirect($this,
"showOrganization");
279 ilUtil::sendSuccess($this->lng->txt(
"msg_obj_modified"),
true);
280 $ilCtrl->redirect($this,
"showOrganization");
290 $ilCtrl->setParameter($this,
"backcmd",
$_GET[
"backcmd"]);
300 $ilCtrl->redirect($this,
"showOrganization");
311 $ilCtrl->redirect($this,
"showOrganization");
323 $ilLocator->addRepositoryItems(
$_GET[
"ref_id"]);
326 if (
$_GET[
"obj_id"] > 0) {
327 $tree =
new ilTree($this->slm_object->getId());
328 $tree->setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
329 $tree->setTreeTablePK(
"slm_id");
330 $path = $tree->getPathFull(
$_GET[
"obj_id"]);
331 for (
$i = 1;
$i < count($path);
$i++) {
333 switch ($path[
$i][
"type"]) {
336 "ilscorm2004chaptergui",
343 "ilscorm2004chaptergui",
355 "ilscorm2004seqchaptergui",
362 "ilscorm2004seqchaptergui",
393 "ilscorm2004assetgui",
400 "ilscorm2004assetgui",
412 "ilscorm2004pagegui",
419 "ilscorm2004pagegui",
431 $ilCtrl->setParameter($this,
"obj_id",
$_GET[
"obj_id"]);
444 include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
445 $tpl->setCurrentBlock(
"ContentStyle");
447 "LOCATION_CONTENT_STYLESHEET",
451 "LOCATION_ADDITIONAL_STYLESHEET",
454 $tpl->parseCurrentBlock();
456 $tpl->setCurrentBlock(
"SyntaxStyle");
458 "LOCATION_SYNTAX_STYLESHEET",
461 $tpl->parseCurrentBlock();
467 public function copyItems($a_return =
"showOrganization")
474 foreach ($items as $k => $item) {
479 foreach ($todel as $k) {
484 $ilCtrl->redirect($this, $a_return);
489 include_once(
"./Modules/LearningModule/classes/class.ilEditClipboard.php");
493 $ilCtrl->redirect($this, $a_return);
499 public function cutItems($a_return =
"showOrganization")
506 foreach ($items as $k => $item) {
511 foreach ($todel as $k) {
517 $ilCtrl->redirect($this, $a_return);
522 include_once(
"./Modules/LearningModule/classes/class.ilEditClipboard.php");
527 $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 getContentStylePath($a_style_id, $add_random=true, $add_token=true)
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.
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.
foreach($_POST as $key=> $value) $res