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);
An exception for terminatinating execution or to throw for unit testing.
static setAction($a_action)
static getSyntaxStylePath()
get syntax style path
static getPlaceHolderStylePath()
get placeholder style path (for Page Layouts)
static getContentStylePath($a_style_id, $add_random=true)
get content style path
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()
put this object into content object tree
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