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");
209 $ilTabs->setTabActive(
"sahs_organization");
212 $this->node_object->getId(),
214 $this->node_object->getTitle(),
229 $ilCtrl->setParameter($this,
"highlight",
$res[
"items"]);
230 $ilCtrl->redirect($this,
"showOrganization",
"node_" .
$res[
"node_id"]);
241 $ilCtrl->setParameter($this,
"highlight",
$res[
"items"]);
242 $ilCtrl->redirect($this,
"showOrganization",
"node_" .
$res[
"node_id"]);
253 $ilCtrl->setParameter($this,
"highlight",
$res[
"items"]);
254 $ilCtrl->redirect($this,
"showOrganization",
"node_" .
$res[
"node_id"]);
265 $ilCtrl->setParameter($this,
"highlight",
$res[
"items"]);
266 $ilCtrl->redirect($this,
"showOrganization",
"node_" .
$res[
"node_id"]);
295 $ilCtrl->redirect($this,
"showOrganization");
306 $ilCtrl->redirect($this,
"showOrganization");
317 ilUtil::sendSuccess($this->lng->txt(
"msg_obj_modified"),
true);
318 $ilCtrl->redirect($this,
"showOrganization");
328 $ilCtrl->setParameter($this,
"backcmd",
$_GET[
"backcmd"]);
338 $ilCtrl->redirect($this,
"showOrganization");
349 $ilCtrl->redirect($this,
"showOrganization");
361 $ilLocator->addRepositoryItems(
$_GET[
"ref_id"]);
364 if (
$_GET[
"obj_id"] > 0) {
366 $tree->setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
367 $tree->setTreeTablePK(
"slm_id");
374 "ilscorm2004chaptergui",
381 "ilscorm2004chaptergui",
393 "ilscorm2004seqchaptergui",
400 "ilscorm2004seqchaptergui",
431 "ilscorm2004assetgui",
438 "ilscorm2004assetgui",
450 "ilscorm2004pagegui",
457 "ilscorm2004pagegui",
469 $ilCtrl->setParameter($this,
"obj_id",
$_GET[
"obj_id"]);
482 include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
483 $tpl->setCurrentBlock(
"ContentStyle");
485 "LOCATION_CONTENT_STYLESHEET",
489 "LOCATION_ADDITIONAL_STYLESHEET",
492 $tpl->parseCurrentBlock();
494 $tpl->setCurrentBlock(
"SyntaxStyle");
496 "LOCATION_SYNTAX_STYLESHEET",
499 $tpl->parseCurrentBlock();
505 public function copyItems($a_return =
"showOrganization")
512 foreach ($items as $k => $item) {
517 foreach ($todel as $k) {
522 $ilCtrl->redirect($this, $a_return);
527 include_once(
"./Modules/LearningModule/classes/class.ilEditClipboard.php");
531 $ilCtrl->redirect($this, $a_return);
537 public function cutItems($a_return =
"showOrganization")
544 foreach ($items as $k => $item) {
549 foreach ($todel as $k) {
555 $ilCtrl->redirect($this, $a_return);
560 include_once(
"./Modules/LearningModule/classes/class.ilEditClipboard.php");
565 $ilCtrl->redirect($this, $a_return);
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
showOrganization()
put this object into content object tree
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...
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.