ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
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 ()
 Confirm deletion screen (delete page or structure objects) 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  }
getNodeObject($a_node_id)
Get node object (chapter/sco/page)
user()
Definition: user.php:4
global $DIC
Definition: goto.php:24
+ Here is the call graph for this function:

Member Function Documentation

◆ cancelDelete()

ilSCORM2004NodeGUI::cancelDelete ( )

cancel delete

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

References $ctrl.

298  {
299  $ilCtrl = $this->ctrl;
300  $ilCtrl->redirect($this, "showOrganization");
301  }

◆ collapseAll()

ilSCORM2004NodeGUI::collapseAll ( )

Collapse all.

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

References $ctrl, and getParentGUI().

253  {
254  $ilCtrl = $this->ctrl;
255 
256  $this->getParentGUI()->collapseAll(false);
257  $ilCtrl->redirect($this, "showOrganization");
258  }
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
+ Here is the call graph for this function:

◆ confirmedDelete()

ilSCORM2004NodeGUI::confirmedDelete ( )

confirmed delete

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

References $ctrl, and getParentGUI().

307  {
308  $ilCtrl = $this->ctrl;
309 
310  $this->getParentGUI()->confirmedDelete(false);
311  $ilCtrl->redirect($this, "showOrganization");
312  }
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
+ Here is the call graph for this function:

◆ copyItems()

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

Copy items to clipboard.

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

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

468  {
469  $ilCtrl = $this->ctrl;
470  $lng = $this->lng;
471 
472  $items = ilUtil::stripSlashesArray($_POST["id"]);
473  $todel = array(); // delete IDs < 0 (needed for non-js editing)
474  foreach ($items as $k => $item) {
475  if ($item < 0) {
476  $todel[] = $k;
477  }
478  }
479  foreach ($todel as $k) {
480  unset($items[$k]);
481  }
482  if (!ilSCORM2004Node::uniqueTypesCheck($items)) {
483  ilUtil::sendFailure($lng->txt("sahs_choose_pages_chap_scos_ass_only"), true);
484  $ilCtrl->redirect($this, $a_return);
485  }
486  ilSCORM2004Node::clipboardCopy($this->slm_object->getId(), $items);
487 
488  // @todo: move this to a service since it can be used here, too
489  include_once("./Modules/LearningModule/classes/class.ilEditClipboard.php");
491  ilUtil::sendInfo($lng->txt("cont_selected_items_have_been_copied"), true);
492 
493  $ilCtrl->redirect($this, $a_return);
494  }
static clipboardCopy($a_slm_obj_id, $a_ids)
Copy a set of chapters/pages/scos into the clipboard.
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 499 of file class.ilSCORM2004NodeGUI.php.

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

500  {
501  $ilCtrl = $this->ctrl;
502  $lng = $this->lng;
503 
504  $items = ilUtil::stripSlashesArray($_POST["id"]);
505  $todel = array(); // delete IDs < 0 (needed for non-js editing)
506  foreach ($items as $k => $item) {
507  if ($item < 0) {
508  $todel[] = $k;
509  }
510  }
511  foreach ($todel as $k) {
512  unset($items[$k]);
513  }
514 
515  if (!ilSCORM2004Node::uniqueTypesCheck($items)) {
516  ilUtil::sendFailure($lng->txt("sahs_choose_pages_chap_scos_ass_only"), true);
517  $ilCtrl->redirect($this, $a_return);
518  }
519 
520  ilSCORM2004Node::clipboardCut($this->slm_object->getId(), $items);
521 
522  include_once("./Modules/LearningModule/classes/class.ilEditClipboard.php");
524 
525  ilUtil::sendInfo($lng->txt("cont_selected_items_have_been_cut"), true);
526 
527  $ilCtrl->redirect($this, $a_return);
528  }
static clipboardCut($a_slm_obj_id, $a_ids)
Cut and copy a set of chapters/pages into the clipboard.
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 286 of file class.ilSCORM2004NodeGUI.php.

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

287  {
288  $ilCtrl = $this->ctrl;
289 
290  $ilCtrl->setParameter($this, "backcmd", $_GET["backcmd"]);
291  $this->getParentGUI()->deleteNodes($ilCtrl->getFormAction($this));
292  }
$_GET["client_id"]
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
+ Here is the call graph for this function:

◆ ExpandAll()

ilSCORM2004NodeGUI::ExpandAll ( )

Expand all.

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

References $ctrl, and getParentGUI().

264  {
265  $ilCtrl = $this->ctrl;
266 
267  $this->getParentGUI()->expandAll(false);
268  $ilCtrl->redirect($this, "showOrganization");
269  }
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
+ 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 210 of file class.ilSCORM2004NodeGUI.php.

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

211  {
212  $ilCtrl = $this->ctrl;
213 
214  $res = $this->getParentGUI()->insertAsset(false);
215  $ilCtrl->setParameter($this, "highlight", $res["items"]);
216  $ilCtrl->redirect($this, "showOrganization", "node_" . $res["node_id"]);
217  }
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
foreach($_POST as $key=> $value) $res
+ Here is the call graph for this function:

◆ insertAssetClip()

ilSCORM2004NodeGUI::insertAssetClip ( )

Insert assets from clipboard.

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

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

568  {
569  $ilCtrl = $this->ctrl;
571 
572  ilSCORM2004Node::insertAssetClip($this->slm_object);
573 
574  $ilCtrl->redirect(
575  $this,
576  "showOrganization",
578  );
579  }
static getPostNodeId()
Get node ID of _POST input.
$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 186 of file class.ilSCORM2004NodeGUI.php.

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

187  {
188  $ilCtrl = $this->ctrl;
189 
190  $res = $this->getParentGUI()->insertChapter(false);
191  $ilCtrl->setParameter($this, "highlight", $res["items"]);
192  $ilCtrl->redirect($this, "showOrganization", "node_" . $res["node_id"]);
193  }
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
foreach($_POST as $key=> $value) $res
+ Here is the call graph for this function:

◆ insertLMChapterClip()

ilSCORM2004NodeGUI::insertLMChapterClip ( )

Insert scos from clipboard.

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

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

585  {
586  $ilCtrl = $this->ctrl;
588 
589  $this->setLocator();
590  $this->setTabs();
591  $this->getParentGUI()->insertLMChapterClip();
592  }
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
setLocator()
Set Locator Items.
setTabs()
set admin tabs public
$ilUser
Definition: imgupload.php:18
+ Here is the call graph for this function:

◆ insertPage()

ilSCORM2004NodeGUI::insertPage ( )

Insert Page.

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

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

223  {
224  $ilCtrl = $this->ctrl;
225 
226  $res = $this->getParentGUI()->insertPage(false);
227  $ilCtrl->setParameter($this, "highlight", $res["items"]);
228  $ilCtrl->redirect($this, "showOrganization", "node_" . $res["node_id"]);
229  }
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
foreach($_POST as $key=> $value) $res
+ Here is the call graph for this function:

◆ insertPageClip()

ilSCORM2004NodeGUI::insertPageClip ( )

Insert pages from clipboard.

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

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

534  {
535  $ilCtrl = $this->ctrl;
537 
538  ilSCORM2004Node::insertPageClip($this->slm_object);
539 
540  $ilCtrl->redirect(
541  $this,
542  "showOrganization",
544  );
545  }
static getPostNodeId()
Get node ID of _POST input.
static insertPageClip($a_slm_obj)
Insert pages from clipboard.
$ilUser
Definition: imgupload.php:18
+ Here is the call graph for this function:

◆ insertSco()

ilSCORM2004NodeGUI::insertSco ( )

Insert Sco.

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

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

199  {
200  $ilCtrl = $this->ctrl;
201 
202  $res = $this->getParentGUI()->insertSco(false);
203  $ilCtrl->setParameter($this, "highlight", $res["items"]);
204  $ilCtrl->redirect($this, "showOrganization", "node_" . $res["node_id"]);
205  }
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
foreach($_POST as $key=> $value) $res
+ Here is the call graph for this function:

◆ insertScoClip()

ilSCORM2004NodeGUI::insertScoClip ( )

Insert scos from clipboard.

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

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

551  {
552  $ilCtrl = $this->ctrl;
554 
555  ilSCORM2004Node::insertScoClip($this->slm_object);
556 
557  $ilCtrl->redirect(
558  $this,
559  "showOrganization",
561  );
562  }
static getPostNodeId()
Get node ID of _POST input.
static insertScoClip($a_slm_obj)
Insert scos from clipboard.
$ilUser
Definition: imgupload.php:18
+ Here is the call graph for this function:

◆ insertSpecialPage()

ilSCORM2004NodeGUI::insertSpecialPage ( )

Insert special page.

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

References $ctrl, and getParentGUI().

244  {
245  $ilCtrl = $this->ctrl;
246  $this->getParentGUI()->insertSpecialPage(true);
247  }
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
+ Here is the call graph for this function:

◆ insertTemplateGUI()

ilSCORM2004NodeGUI::insertTemplateGUI ( )

Insert Page with Layout.

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

References $ctrl, and getParentGUI().

235  {
236  $ilCtrl = $this->ctrl;
237  $this->getParentGUI()->insertTemplateGUI(true);
238  }
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
+ Here is the call graph for this function:

◆ saveAllTitles()

ilSCORM2004NodeGUI::saveAllTitles ( )

Save Titles.

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

References $ctrl, and getParentGUI().

275  {
276  $ilCtrl = $this->ctrl;
277 
278  $this->getParentGUI()->saveAllTitles(false);
279  ilUtil::sendSuccess($this->lng->txt("msg_obj_modified"), true);
280  $ilCtrl->redirect($this, "showOrganization");
281  }
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
+ Here is the call graph for this function:

◆ setContentStyle()

ilSCORM2004NodeGUI::setContentStyle ( )

Set content style sheet.

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

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

Referenced by ilSCORM2004PageNodeGUI\executeCommand().

440  {
441  $tpl = $this->tpl;
442 
443  // content styles
444  include_once("./Services/Style/Content/classes/class.ilObjStyleSheet.php");
445  $tpl->setCurrentBlock("ContentStyle");
446  $tpl->setVariable(
447  "LOCATION_CONTENT_STYLESHEET",
448  ilObjStyleSheet::getContentStylePath($this->slm_object->getStyleSheetId())
449  );
450  $tpl->setVariable(
451  "LOCATION_ADDITIONAL_STYLESHEET",
453  );
454  $tpl->parseCurrentBlock();
455 
456  $tpl->setCurrentBlock("SyntaxStyle");
457  $tpl->setVariable(
458  "LOCATION_SYNTAX_STYLESHEET",
460  );
461  $tpl->parseCurrentBlock();
462  }
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 getSyntaxStylePath()
get syntax 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 317 of file class.ilSCORM2004NodeGUI.php.

References $_GET, $ctrl, $i, $locator, $tpl, 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().

318  {
319  $ilLocator = $this->locator;
320  $tpl = $this->tpl;
321  $ilCtrl = $this->ctrl;
322 
323  $ilLocator->addRepositoryItems($_GET["ref_id"]);
324  $this->getParentGUI()->addLocatorItems();
325 
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++) {
332  //var_dump($path[$i]);
333  switch ($path[$i]["type"]) {
334  case "chap":
335  $ilCtrl->setParameterByClass(
336  "ilscorm2004chaptergui",
337  "obj_id",
338  $path[$i]["child"]
339  );
340  $ilLocator->addItem(
341  $path[$i]["title"],
342  $ilCtrl->getLinkTargetByClass(
343  "ilscorm2004chaptergui",
344  "showOrganization"
345  ),
346  "",
347  0,
348  $path[$i]["type"],
349  ilUtil::getImagePath("icon_chap.svg")
350  );
351  break;
352 
353  case "seqc":
354  $ilCtrl->setParameterByClass(
355  "ilscorm2004seqchaptergui",
356  "obj_id",
357  $path[$i]["child"]
358  );
359  $ilLocator->addItem(
360  $path[$i]["title"],
361  $ilCtrl->getLinkTargetByClass(
362  "ilscorm2004seqchaptergui",
363  "showOrganization"
364  ),
365  "",
366  0,
367  $path[$i]["type"],
368  ilUtil::getImagePath("icon_chap.svg")
369  );
370  break;
371 
372  case "sco":
373  $ilCtrl->setParameterByClass(
374  "ilscorm2004scogui",
375  "obj_id",
376  $path[$i]["child"]
377  );
378  $ilLocator->addItem(
379  $path[$i]["title"],
380  $ilCtrl->getLinkTargetByClass(
381  "ilscorm2004scogui",
382  "showOrganization"
383  ),
384  "",
385  0,
386  $path[$i]["type"],
387  ilUtil::getImagePath("icon_sco.svg")
388  );
389  break;
390 
391  case "ass":
392  $ilCtrl->setParameterByClass(
393  "ilscorm2004assetgui",
394  "obj_id",
395  $path[$i]["child"]
396  );
397  $ilLocator->addItem(
398  $path[$i]["title"],
399  $ilCtrl->getLinkTargetByClass(
400  "ilscorm2004assetgui",
401  "showOrganization"
402  ),
403  "",
404  0,
405  $path[$i]["type"],
406  ilUtil::getImagePath("icon_sca.svg")
407  );
408  break;
409 
410  case "page":
411  $ilCtrl->setParameterByClass(
412  "ilscorm2004pagegui",
413  "obj_id",
414  $path[$i]["child"]
415  );
416  $ilLocator->addItem(
417  $path[$i]["title"],
418  $ilCtrl->getLinkTargetByClass(
419  "ilscorm2004pagegui",
420  "edit"
421  ),
422  "",
423  0,
424  $path[$i]["type"],
425  ilUtil::getImagePath("icon_pg.svg")
426  );
427  break;
428  }
429  }
430  }
431  $ilCtrl->setParameter($this, "obj_id", $_GET["obj_id"]);
432 
433  $tpl->setLocator();
434  }
$_GET["client_id"]
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
$i
Definition: metadata.php:24
+ 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 ( )

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 163 of file class.ilSCORM2004NodeGUI.php.

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

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

164  {
165  $lng = $this->lng;
166  $ilCtrl = $this->ctrl;
167  $tpl = $this->tpl;
168  $ilTabs = $this->tabs;
169 
170  $this->setTabs();
171  $ilTabs->setTabActive("sahs_organization");
172  $this->setLocator();
173  $this->getParentGUI()->showOrganization(
174  $this->node_object->getId(),
175  $ilCtrl->getFormAction($this),
176  $this->node_object->getTitle(),
177  ilUtil::getImagePath("icon_" . $this->node_object->getType() . ".svg"),
178  $this,
179  "showOrganization"
180  );
181  }
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
setLocator()
Set Locator Items.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
setTabs()
set admin tabs public
+ 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: