ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilSCORM2004NodeGUI Class Reference

Class ilSCORM2004NodeGUI. More...

+ Inheritance diagram for ilSCORM2004NodeGUI:
+ Collaboration diagram for ilSCORM2004NodeGUI:

Public Member Functions

 __construct ($a_slm_obj, $a_node_id=0)
 constructor More...
 
 setParentGUI ($a_parentgui)
 Set Parent GUI class (ilObjSCORM2004LearningModuleGUI). More...
 
 getParentGUI ()
 Get Parent GUI class (ilObjSCORM2004LearningModuleGUI). More...
 
 getNodeObject ($a_node_id)
 Get node object (chapter/sco/page) More...
 
 showOrganization ()
 put this object into content object tree More...
 
 insertChapter ()
 Insert Chapter. More...
 
 insertSco ()
 Insert Sco. More...
 
 insertAsset ()
 Insert Asset. More...
 
 insertPage ()
 Insert Page. More...
 
 insertTemplateGUI ()
 Insert Page with Layout. More...
 
 insertSpecialPage ()
 Insert special page. More...
 
 collapseAll ()
 Collapse all. More...
 
 ExpandAll ()
 Expand all. More...
 
 saveAllTitles ()
 Save Titles. More...
 
 deleteNodes ()
 Delete nodes in the hierarchy. More...
 
 cancelDelete ()
 cancel delete More...
 
 confirmedDelete ()
 confirmed delete More...
 
 setLocator ()
 Set Locator Items. More...
 
 setContentStyle ()
 Set content style sheet. More...
 
 copyItems ($a_return="showOrganization")
 Copy items to clipboard. More...
 
 cutItems ($a_return="showOrganization")
 Copy items to clipboard, then cut them from the current tree. More...
 
 insertPageClip ()
 Insert pages from clipboard. More...
 
 insertScoClip ()
 Insert scos from clipboard. More...
 
 insertAssetClip ()
 Insert assets from clipboard. More...
 
 insertLMChapterClip ()
 Insert scos from clipboard. More...
 

Data Fields

 $node_object
 
 $slm_object
 

Protected Attributes

 $lng
 
 $ctrl
 
 $tpl
 
 $tabs
 
 $locator
 
 $user
 

Detailed Description

Class ilSCORM2004NodeGUI.

Base GUI class for scorm nodes (Chapter, SCO and Page)

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 14 of file class.ilSCORM2004NodeGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilSCORM2004NodeGUI::__construct (   $a_slm_obj,
  $a_node_id = 0 
)

constructor

Parameters
object$a_content_objnode object

Definition at line 54 of file class.ilSCORM2004NodeGUI.php.

References $DIC, getNodeObject(), and user().

55  {
56  global $DIC;
57 
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;
66 
67  if ($a_node_id > 0) {
68  $this->getNodeObject($a_node_id);
69  }
70  }
global $DIC
Definition: saml.php:7
getNodeObject($a_node_id)
Get node object (chapter/sco/page)
user()
Definition: user.php:4
+ Here is the call graph for this function:

Member Function Documentation

◆ cancelDelete()

ilSCORM2004NodeGUI::cancelDelete ( )

cancel delete

Definition at line 335 of file class.ilSCORM2004NodeGUI.php.

References $ctrl, and $ilCtrl.

336  {
338  $ilCtrl->redirect($this, "showOrganization");
339  }
global $ilCtrl
Definition: ilias.php:18

◆ collapseAll()

ilSCORM2004NodeGUI::collapseAll ( )

Collapse all.

Definition at line 290 of file class.ilSCORM2004NodeGUI.php.

References $ctrl, $ilCtrl, and getParentGUI().

291  {
293 
294  $this->getParentGUI()->collapseAll(false);
295  $ilCtrl->redirect($this, "showOrganization");
296  }
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
global $ilCtrl
Definition: ilias.php:18
+ Here is the call graph for this function:

◆ confirmedDelete()

ilSCORM2004NodeGUI::confirmedDelete ( )

confirmed delete

Definition at line 344 of file class.ilSCORM2004NodeGUI.php.

References $ctrl, $ilCtrl, and getParentGUI().

345  {
347 
348  $this->getParentGUI()->confirmedDelete(false);
349  $ilCtrl->redirect($this, "showOrganization");
350  }
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
global $ilCtrl
Definition: ilias.php:18
+ Here is the call graph for this function:

◆ copyItems()

ilSCORM2004NodeGUI::copyItems (   $a_return = "showOrganization")

Copy items to clipboard.

Definition at line 505 of file class.ilSCORM2004NodeGUI.php.

References $_POST, $ctrl, $ilCtrl, $lng, ilSCORM2004Node\clipboardCopy(), ilUtil\sendFailure(), ilUtil\sendInfo(), ilEditClipboard\setAction(), ilUtil\stripSlashesArray(), and ilSCORM2004Node\uniqueTypesCheck().

506  {
508  $lng = $this->lng;
509 
510  $items = ilUtil::stripSlashesArray($_POST["id"]);
511  $todel = array(); // delete IDs < 0 (needed for non-js editing)
512  foreach ($items as $k => $item) {
513  if ($item < 0) {
514  $todel[] = $k;
515  }
516  }
517  foreach ($todel as $k) {
518  unset($items[$k]);
519  }
520  if (!ilSCORM2004Node::uniqueTypesCheck($items)) {
521  ilUtil::sendFailure($lng->txt("sahs_choose_pages_chap_scos_ass_only"), true);
522  $ilCtrl->redirect($this, $a_return);
523  }
524  ilSCORM2004Node::clipboardCopy($this->slm_object->getId(), $items);
525 
526  // @todo: move this to a service since it can be used here, too
527  include_once("./Modules/LearningModule/classes/class.ilEditClipboard.php");
529  ilUtil::sendInfo($lng->txt("cont_selected_items_have_been_copied"), true);
530 
531  $ilCtrl->redirect($this, $a_return);
532  }
static clipboardCopy($a_slm_obj_id, $a_ids)
Copy a set of chapters/pages/scos into the clipboard.
global $ilCtrl
Definition: ilias.php:18
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
static uniqueTypesCheck($a_items)
Check for unique types (all pages or all chapters or all scos)
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 setAction($a_action)
$_POST["username"]
+ Here is the call graph for this function:

◆ cutItems()

ilSCORM2004NodeGUI::cutItems (   $a_return = "showOrganization")

Copy items to clipboard, then cut them from the current tree.

Definition at line 537 of file class.ilSCORM2004NodeGUI.php.

References $_POST, $ctrl, $ilCtrl, $lng, ilSCORM2004Node\clipboardCut(), ilUtil\sendFailure(), ilUtil\sendInfo(), ilEditClipboard\setAction(), ilUtil\stripSlashesArray(), and ilSCORM2004Node\uniqueTypesCheck().

538  {
540  $lng = $this->lng;
541 
542  $items = ilUtil::stripSlashesArray($_POST["id"]);
543  $todel = array(); // delete IDs < 0 (needed for non-js editing)
544  foreach ($items as $k => $item) {
545  if ($item < 0) {
546  $todel[] = $k;
547  }
548  }
549  foreach ($todel as $k) {
550  unset($items[$k]);
551  }
552 
553  if (!ilSCORM2004Node::uniqueTypesCheck($items)) {
554  ilUtil::sendFailure($lng->txt("sahs_choose_pages_chap_scos_ass_only"), true);
555  $ilCtrl->redirect($this, $a_return);
556  }
557 
558  ilSCORM2004Node::clipboardCut($this->slm_object->getId(), $items);
559 
560  include_once("./Modules/LearningModule/classes/class.ilEditClipboard.php");
562 
563  ilUtil::sendInfo($lng->txt("cont_selected_items_have_been_cut"), true);
564 
565  $ilCtrl->redirect($this, $a_return);
566  }
static clipboardCut($a_slm_obj_id, $a_ids)
Cut and copy a set of chapters/pages into the clipboard.
global $ilCtrl
Definition: ilias.php:18
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
static uniqueTypesCheck($a_items)
Check for unique types (all pages or all chapters or all scos)
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 setAction($a_action)
$_POST["username"]
+ Here is the call graph for this function:

◆ deleteNodes()

ilSCORM2004NodeGUI::deleteNodes ( )

Delete nodes in the hierarchy.

Definition at line 324 of file class.ilSCORM2004NodeGUI.php.

References $_GET, $ctrl, $ilCtrl, and getParentGUI().

325  {
327 
328  $ilCtrl->setParameter($this, "backcmd", $_GET["backcmd"]);
329  $this->getParentGUI()->deleteNodes($ilCtrl->getFormAction($this));
330  }
$_GET["client_id"]
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
global $ilCtrl
Definition: ilias.php:18
+ Here is the call graph for this function:

◆ ExpandAll()

ilSCORM2004NodeGUI::ExpandAll ( )

Expand all.

Definition at line 301 of file class.ilSCORM2004NodeGUI.php.

References $ctrl, $ilCtrl, and getParentGUI().

302  {
304 
305  $this->getParentGUI()->expandAll(false);
306  $ilCtrl->redirect($this, "showOrganization");
307  }
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
global $ilCtrl
Definition: ilias.php:18
+ Here is the call graph for this function:

◆ getNodeObject()

ilSCORM2004NodeGUI::getNodeObject (   $a_node_id)

Get node object (chapter/sco/page)

Definition at line 95 of file class.ilSCORM2004NodeGUI.php.

References ilSCORM2004NodeFactory\getInstance().

Referenced by __construct().

96  {
97  include_once("./Modules/Scorm2004/classes/class.ilSCORM2004NodeFactory.php");
98  $this->node_object = ilSCORM2004NodeFactory::getInstance(
99  $this->slm_object,
100  $a_node_id,
101  false
102  );
103  }
static getInstance($a_slm_object, $a_id=0, $a_halt=true)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getParentGUI()

ilSCORM2004NodeGUI::getParentGUI ( )

Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).

Returns
object Parent GUI class

Definition at line 87 of file class.ilSCORM2004NodeGUI.php.

Referenced by collapseAll(), confirmedDelete(), deleteNodes(), ilSCORM2004PageNodeGUI\executeCommand(), ExpandAll(), insertAsset(), insertChapter(), insertLMChapterClip(), insertPage(), insertSco(), insertSpecialPage(), insertTemplateGUI(), saveAllTitles(), setLocator(), and showOrganization().

88  {
89  return $this->parentgui;
90  }
+ Here is the caller graph for this function:

◆ insertAsset()

ilSCORM2004NodeGUI::insertAsset ( )

Insert Asset.

Definition at line 248 of file class.ilSCORM2004NodeGUI.php.

References $ctrl, $ilCtrl, $res, and getParentGUI().

249  {
251 
252  $res = $this->getParentGUI()->insertAsset(false);
253  $ilCtrl->setParameter($this, "highlight", $res["items"]);
254  $ilCtrl->redirect($this, "showOrganization", "node_" . $res["node_id"]);
255  }
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
global $ilCtrl
Definition: ilias.php:18
foreach($_POST as $key=> $value) $res
+ Here is the call graph for this function:

◆ insertAssetClip()

ilSCORM2004NodeGUI::insertAssetClip ( )

Insert assets from clipboard.

Definition at line 605 of file class.ilSCORM2004NodeGUI.php.

References $ctrl, $ilCtrl, $ilUser, $user, ilHierarchyFormGUI\getPostNodeId(), and ilSCORM2004Node\insertAssetClip().

606  {
609 
610  ilSCORM2004Node::insertAssetClip($this->slm_object);
611 
612  $ilCtrl->redirect(
613  $this,
614  "showOrganization",
616  );
617  }
static getPostNodeId()
Get node ID of _POST input.
global $ilCtrl
Definition: ilias.php:18
$ilUser
Definition: imgupload.php:18
static insertAssetClip($a_slm_obj, $a_type="ass")
Insert assets from clipboard.
+ Here is the call graph for this function:

◆ insertChapter()

ilSCORM2004NodeGUI::insertChapter ( )

Insert Chapter.

Definition at line 224 of file class.ilSCORM2004NodeGUI.php.

References $ctrl, $ilCtrl, $res, and getParentGUI().

225  {
227 
228  $res = $this->getParentGUI()->insertChapter(false);
229  $ilCtrl->setParameter($this, "highlight", $res["items"]);
230  $ilCtrl->redirect($this, "showOrganization", "node_" . $res["node_id"]);
231  }
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
global $ilCtrl
Definition: ilias.php:18
foreach($_POST as $key=> $value) $res
+ Here is the call graph for this function:

◆ insertLMChapterClip()

ilSCORM2004NodeGUI::insertLMChapterClip ( )

Insert scos from clipboard.

Definition at line 622 of file class.ilSCORM2004NodeGUI.php.

References $ctrl, $ilCtrl, $ilUser, $user, getParentGUI(), and setLocator().

623  {
626 
627  $this->setLocator();
628  $this->setTabs();
629  $this->getParentGUI()->insertLMChapterClip();
630  }
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
setLocator()
Set Locator Items.
global $ilCtrl
Definition: ilias.php:18
$ilUser
Definition: imgupload.php:18
+ Here is the call graph for this function:

◆ insertPage()

ilSCORM2004NodeGUI::insertPage ( )

Insert Page.

Definition at line 260 of file class.ilSCORM2004NodeGUI.php.

References $ctrl, $ilCtrl, $res, and getParentGUI().

261  {
263 
264  $res = $this->getParentGUI()->insertPage(false);
265  $ilCtrl->setParameter($this, "highlight", $res["items"]);
266  $ilCtrl->redirect($this, "showOrganization", "node_" . $res["node_id"]);
267  }
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
global $ilCtrl
Definition: ilias.php:18
foreach($_POST as $key=> $value) $res
+ Here is the call graph for this function:

◆ insertPageClip()

ilSCORM2004NodeGUI::insertPageClip ( )

Insert pages from clipboard.

Definition at line 571 of file class.ilSCORM2004NodeGUI.php.

References $ctrl, $ilCtrl, $ilUser, $user, ilHierarchyFormGUI\getPostNodeId(), and ilSCORM2004Node\insertPageClip().

572  {
575 
576  ilSCORM2004Node::insertPageClip($this->slm_object);
577 
578  $ilCtrl->redirect(
579  $this,
580  "showOrganization",
582  );
583  }
static getPostNodeId()
Get node ID of _POST input.
static insertPageClip($a_slm_obj)
Insert pages from clipboard.
global $ilCtrl
Definition: ilias.php:18
$ilUser
Definition: imgupload.php:18
+ Here is the call graph for this function:

◆ insertSco()

ilSCORM2004NodeGUI::insertSco ( )

Insert Sco.

Definition at line 236 of file class.ilSCORM2004NodeGUI.php.

References $ctrl, $ilCtrl, $res, and getParentGUI().

237  {
239 
240  $res = $this->getParentGUI()->insertSco(false);
241  $ilCtrl->setParameter($this, "highlight", $res["items"]);
242  $ilCtrl->redirect($this, "showOrganization", "node_" . $res["node_id"]);
243  }
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
global $ilCtrl
Definition: ilias.php:18
foreach($_POST as $key=> $value) $res
+ Here is the call graph for this function:

◆ insertScoClip()

ilSCORM2004NodeGUI::insertScoClip ( )

Insert scos from clipboard.

Definition at line 588 of file class.ilSCORM2004NodeGUI.php.

References $ctrl, $ilCtrl, $ilUser, $user, ilHierarchyFormGUI\getPostNodeId(), and ilSCORM2004Node\insertScoClip().

589  {
592 
593  ilSCORM2004Node::insertScoClip($this->slm_object);
594 
595  $ilCtrl->redirect(
596  $this,
597  "showOrganization",
599  );
600  }
static getPostNodeId()
Get node ID of _POST input.
static insertScoClip($a_slm_obj)
Insert scos from clipboard.
global $ilCtrl
Definition: ilias.php:18
$ilUser
Definition: imgupload.php:18
+ Here is the call graph for this function:

◆ insertSpecialPage()

ilSCORM2004NodeGUI::insertSpecialPage ( )

Insert special page.

Definition at line 281 of file class.ilSCORM2004NodeGUI.php.

References $ctrl, $ilCtrl, and getParentGUI().

282  {
284  $this->getParentGUI()->insertSpecialPage(true);
285  }
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
global $ilCtrl
Definition: ilias.php:18
+ Here is the call graph for this function:

◆ insertTemplateGUI()

ilSCORM2004NodeGUI::insertTemplateGUI ( )

Insert Page with Layout.

Definition at line 272 of file class.ilSCORM2004NodeGUI.php.

References $ctrl, $ilCtrl, and getParentGUI().

273  {
275  $this->getParentGUI()->insertTemplateGUI(true);
276  }
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
global $ilCtrl
Definition: ilias.php:18
+ Here is the call graph for this function:

◆ saveAllTitles()

ilSCORM2004NodeGUI::saveAllTitles ( )

Save Titles.

Definition at line 312 of file class.ilSCORM2004NodeGUI.php.

References $ctrl, $ilCtrl, and getParentGUI().

313  {
315 
316  $this->getParentGUI()->saveAllTitles(false);
317  ilUtil::sendSuccess($this->lng->txt("msg_obj_modified"), true);
318  $ilCtrl->redirect($this, "showOrganization");
319  }
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
global $ilCtrl
Definition: ilias.php:18
+ Here is the call graph for this function:

◆ setContentStyle()

ilSCORM2004NodeGUI::setContentStyle ( )

Set content style sheet.

Definition at line 477 of file class.ilSCORM2004NodeGUI.php.

References $tpl, ilObjStyleSheet\getContentStylePath(), ilObjStyleSheet\getPlaceHolderStylePath(), and ilObjStyleSheet\getSyntaxStylePath().

Referenced by ilSCORM2004PageNodeGUI\executeCommand().

478  {
479  $tpl = $this->tpl;
480 
481  // content styles
482  include_once("./Services/Style/Content/classes/class.ilObjStyleSheet.php");
483  $tpl->setCurrentBlock("ContentStyle");
484  $tpl->setVariable(
485  "LOCATION_CONTENT_STYLESHEET",
486  ilObjStyleSheet::getContentStylePath($this->slm_object->getStyleSheetId())
487  );
488  $tpl->setVariable(
489  "LOCATION_ADDITIONAL_STYLESHEET",
491  );
492  $tpl->parseCurrentBlock();
493 
494  $tpl->setCurrentBlock("SyntaxStyle");
495  $tpl->setVariable(
496  "LOCATION_SYNTAX_STYLESHEET",
498  );
499  $tpl->parseCurrentBlock();
500  }
static getPlaceHolderStylePath()
get placeholder style path (for Page Layouts)
static getSyntaxStylePath()
get syntax style path
static getContentStylePath($a_style_id, $add_random=true)
get content style path
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setLocator()

ilSCORM2004NodeGUI::setLocator ( )

Set Locator Items.

Definition at line 355 of file class.ilSCORM2004NodeGUI.php.

References $_GET, $ctrl, $i, $ilCtrl, $locator, $path, $tpl, $tree, ilUtil\getImagePath(), and getParentGUI().

Referenced by ilSCORM2004PageNodeGUI\executeCommand(), ilSCORM2004ScoGUI\executeCommand(), ilSCORM2004ChapterGUI\executeCommand(), ilSCORM2004ScoGUI\import(), insertLMChapterClip(), ilSCORM2004ScoGUI\sahs_questions(), ilSCORM2004ScoGUI\sco_resources(), ilSCORM2004ScoGUI\showExportList(), showOrganization(), ilSCORM2004ScoGUI\showProperties(), and ilSCORM2004ChapterGUI\showProperties().

356  {
357  $ilLocator = $this->locator;
358  $tpl = $this->tpl;
360 
361  $ilLocator->addRepositoryItems($_GET["ref_id"]);
362  $this->getParentGUI()->addLocatorItems();
363 
364  if ($_GET["obj_id"] > 0) {
365  $tree = new ilTree($this->slm_object->getId());
366  $tree->setTableNames('sahs_sc13_tree', 'sahs_sc13_tree_node');
367  $tree->setTreeTablePK("slm_id");
368  $path = $tree->getPathFull($_GET["obj_id"]);
369  for ($i = 1; $i < count($path); $i++) {
370  //var_dump($path[$i]);
371  switch ($path[$i]["type"]) {
372  case "chap":
373  $ilCtrl->setParameterByClass(
374  "ilscorm2004chaptergui",
375  "obj_id",
376  $path[$i]["child"]
377  );
378  $ilLocator->addItem(
379  $path[$i]["title"],
380  $ilCtrl->getLinkTargetByClass(
381  "ilscorm2004chaptergui",
382  "showOrganization"
383  ),
384  "",
385  0,
386  $path[$i]["type"],
387  ilUtil::getImagePath("icon_chap.svg")
388  );
389  break;
390 
391  case "seqc":
392  $ilCtrl->setParameterByClass(
393  "ilscorm2004seqchaptergui",
394  "obj_id",
395  $path[$i]["child"]
396  );
397  $ilLocator->addItem(
398  $path[$i]["title"],
399  $ilCtrl->getLinkTargetByClass(
400  "ilscorm2004seqchaptergui",
401  "showOrganization"
402  ),
403  "",
404  0,
405  $path[$i]["type"],
406  ilUtil::getImagePath("icon_chap.svg")
407  );
408  break;
409 
410  case "sco":
411  $ilCtrl->setParameterByClass(
412  "ilscorm2004scogui",
413  "obj_id",
414  $path[$i]["child"]
415  );
416  $ilLocator->addItem(
417  $path[$i]["title"],
418  $ilCtrl->getLinkTargetByClass(
419  "ilscorm2004scogui",
420  "showOrganization"
421  ),
422  "",
423  0,
424  $path[$i]["type"],
425  ilUtil::getImagePath("icon_sco.svg")
426  );
427  break;
428 
429  case "ass":
430  $ilCtrl->setParameterByClass(
431  "ilscorm2004assetgui",
432  "obj_id",
433  $path[$i]["child"]
434  );
435  $ilLocator->addItem(
436  $path[$i]["title"],
437  $ilCtrl->getLinkTargetByClass(
438  "ilscorm2004assetgui",
439  "showOrganization"
440  ),
441  "",
442  0,
443  $path[$i]["type"],
444  ilUtil::getImagePath("icon_sca.svg")
445  );
446  break;
447 
448  case "page":
449  $ilCtrl->setParameterByClass(
450  "ilscorm2004pagegui",
451  "obj_id",
452  $path[$i]["child"]
453  );
454  $ilLocator->addItem(
455  $path[$i]["title"],
456  $ilCtrl->getLinkTargetByClass(
457  "ilscorm2004pagegui",
458  "edit"
459  ),
460  "",
461  0,
462  $path[$i]["type"],
463  ilUtil::getImagePath("icon_pg.svg")
464  );
465  break;
466  }
467  }
468  }
469  $ilCtrl->setParameter($this, "obj_id", $_GET["obj_id"]);
470 
471  $tpl->setLocator();
472  }
$path
Definition: aliased.php:25
$_GET["client_id"]
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
global $ilCtrl
Definition: ilias.php:18
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
$i
Definition: disco.tpl.php:19
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setParentGUI()

ilSCORM2004NodeGUI::setParentGUI (   $a_parentgui)

Set Parent GUI class (ilObjSCORM2004LearningModuleGUI).

Parameters
object$a_parentguiParent GUI class

Definition at line 77 of file class.ilSCORM2004NodeGUI.php.

78  {
79  $this->parentgui = $a_parentgui;
80  }

◆ showOrganization()

ilSCORM2004NodeGUI::showOrganization ( )

put this object into content object tree

Todo:
: move to application class

* if (!empty($_GET["target"])) Confirm deletion screen (delete page or structure objects)

Todo:
: check if we need this

cancel deletion of page/structure objects

Todo:
: check if we need this

page and structure object deletion

Todo:
: check if we need this

check the content object tree

Todo:
: check if we need this

Show subhiearchy of pages and subchapters

Definition at line 201 of file class.ilSCORM2004NodeGUI.php.

References $ctrl, $ilCtrl, $lng, $tabs, $tpl, ilUtil\getImagePath(), getParentGUI(), and setLocator().

Referenced by ilSCORM2004ScoGUI\executeCommand(), and ilSCORM2004ChapterGUI\executeCommand().

202  {
203  $lng = $this->lng;
205  $tpl = $this->tpl;
206  $ilTabs = $this->tabs;
207 
208  $this->setTabs();
209  $ilTabs->setTabActive("sahs_organization");
210  $this->setLocator();
211  $this->getParentGUI()->showOrganization(
212  $this->node_object->getId(),
213  $ilCtrl->getFormAction($this),
214  $this->node_object->getTitle(),
215  ilUtil::getImagePath("icon_" . $this->node_object->getType() . ".svg"),
216  $this,
217  "showOrganization"
218  );
219  }
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
setLocator()
Set Locator Items.
global $ilCtrl
Definition: ilias.php:18
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $ctrl

◆ $lng

◆ $locator

ilSCORM2004NodeGUI::$locator
protected

Definition at line 39 of file class.ilSCORM2004NodeGUI.php.

Referenced by setLocator().

◆ $node_object

ilSCORM2004NodeGUI::$node_object

Definition at line 46 of file class.ilSCORM2004NodeGUI.php.

Referenced by ilSCORM2004PageNodeGUI\executeCommand().

◆ $slm_object

ilSCORM2004NodeGUI::$slm_object

Definition at line 47 of file class.ilSCORM2004NodeGUI.php.

◆ $tabs

◆ $tpl

◆ $user

ilSCORM2004NodeGUI::$user
protected

The documentation for this class was generated from the following file: