ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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...
 
 putInTree ($a_parent_id, $a_target)
 put this object into content object tree 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
 

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

References getNodeObject().

25  {
26  $this->slm_object = $a_slm_obj;
27  $this->node_object = null;
28 
29  if ($a_node_id > 0)
30  {
31  $this->getNodeObject($a_node_id);
32  }
33  }
getNodeObject($a_node_id)
Get node object (chapter/sco/page)
+ Here is the call graph for this function:

Member Function Documentation

◆ cancelDelete()

ilSCORM2004NodeGUI::cancelDelete ( )

cancel delete

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

References $ilCtrl.

288  {
289  global $ilCtrl;
290  $ilCtrl->redirect($this, "showOrganization");
291  }
global $ilCtrl
Definition: ilias.php:18

◆ collapseAll()

ilSCORM2004NodeGUI::collapseAll ( )

Collapse all.

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

References $ilCtrl, and getParentGUI().

244  {
245  global $ilCtrl;
246 
247  $this->getParentGUI()->collapseAll(false);
248  $ilCtrl->redirect($this, "showOrganization");
249  }
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 296 of file class.ilSCORM2004NodeGUI.php.

References $ilCtrl, and getParentGUI().

297  {
298  global $ilCtrl;
299 
300  $this->getParentGUI()->confirmedDelete(false);
301  $ilCtrl->redirect($this, "showOrganization");
302  }
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 402 of file class.ilSCORM2004NodeGUI.php.

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

403  {
404  global $ilCtrl, $lng;
405 
406  $items = ilUtil::stripSlashesArray($_POST["id"]);
407  $todel = array(); // delete IDs < 0 (needed for non-js editing)
408  foreach($items as $k => $item)
409  {
410  if ($item < 0)
411  {
412  $todel[] = $k;
413  }
414  }
415  foreach($todel as $k)
416  {
417  unset($items[$k]);
418  }
420  {
421  ilUtil::sendFailure($lng->txt("sahs_choose_pages_chap_scos_ass_only"), true);
422  $ilCtrl->redirect($this, $a_return);
423  }
424  ilSCORM2004Node::clipboardCopy($this->slm_object->getId(), $items);
425 
426  // @todo: move this to a service since it can be used here, too
427  include_once("./Modules/LearningModule/classes/class.ilEditClipboard.php");
429  ilUtil::sendInfo($lng->txt("cont_selected_items_have_been_copied"), true);
430 
431  $ilCtrl->redirect($this, $a_return);
432  }
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)
Create styles array
The data for the language used.
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.
global $lng
Definition: privfeed.php:17
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 437 of file class.ilSCORM2004NodeGUI.php.

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

438  {
439  global $ilCtrl, $lng;
440 
441  $items = ilUtil::stripSlashesArray($_POST["id"]);
442  $todel = array(); // delete IDs < 0 (needed for non-js editing)
443  foreach($items as $k => $item)
444  {
445  if ($item < 0)
446  {
447  $todel[] = $k;
448  }
449  }
450  foreach($todel as $k)
451  {
452  unset($items[$k]);
453  }
454 
456  {
457  ilUtil::sendFailure($lng->txt("sahs_choose_pages_chap_scos_ass_only"), true);
458  $ilCtrl->redirect($this, $a_return);
459  }
460 
461  ilSCORM2004Node::clipboardCut($this->slm_object->getId(), $items);
462 
463  include_once("./Modules/LearningModule/classes/class.ilEditClipboard.php");
465 
466  ilUtil::sendInfo($lng->txt("cont_selected_items_have_been_cut"), true);
467 
468  $ilCtrl->redirect($this, $a_return);
469  }
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)
Create styles array
The data for the language used.
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.
global $lng
Definition: privfeed.php:17
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 276 of file class.ilSCORM2004NodeGUI.php.

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

277  {
278  global $ilCtrl;
279 
280  $ilCtrl->setParameter($this, "backcmd", $_GET["backcmd"]);
281  $this->getParentGUI()->deleteNodes($ilCtrl->getFormAction($this));
282  }
$_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 254 of file class.ilSCORM2004NodeGUI.php.

References $ilCtrl, and getParentGUI().

255  {
256  global $ilCtrl;
257 
258  $this->getParentGUI()->expandAll(false);
259  $ilCtrl->redirect($this, "showOrganization");
260  }
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 58 of file class.ilSCORM2004NodeGUI.php.

References ilSCORM2004NodeFactory\getInstance().

Referenced by __construct().

59  {
60  include_once("./Modules/Scorm2004/classes/class.ilSCORM2004NodeFactory.php");
61  $this->node_object = ilSCORM2004NodeFactory::getInstance($this->slm_object,
62  $a_node_id, false);
63  }
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 50 of file class.ilSCORM2004NodeGUI.php.

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

51  {
52  return $this->parentgui;
53  }
+ Here is the caller graph for this function:

◆ insertAsset()

ilSCORM2004NodeGUI::insertAsset ( )

Insert Asset.

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

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

202  {
203  global $ilCtrl;
204 
205  $res = $this->getParentGUI()->insertAsset(false);
206  $ilCtrl->setParameter($this, "highlight", $res["items"]);
207  $ilCtrl->redirect($this, "showOrganization", "node_".$res["node_id"]);
208  }
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
global $ilCtrl
Definition: ilias.php:18
+ Here is the call graph for this function:

◆ insertAssetClip()

ilSCORM2004NodeGUI::insertAssetClip ( )

Insert assets from clipboard.

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

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

501  {
502  global $ilCtrl, $ilUser;
503 
504  ilSCORM2004Node::insertAssetClip($this->slm_object);
505 
506  $ilCtrl->redirect($this, "showOrganization",
508  }
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 177 of file class.ilSCORM2004NodeGUI.php.

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

178  {
179  global $ilCtrl;
180 
181  $res = $this->getParentGUI()->insertChapter(false);
182  $ilCtrl->setParameter($this, "highlight", $res["items"]);
183  $ilCtrl->redirect($this, "showOrganization", "node_".$res["node_id"]);
184  }
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
global $ilCtrl
Definition: ilias.php:18
+ Here is the call graph for this function:

◆ insertLMChapterClip()

ilSCORM2004NodeGUI::insertLMChapterClip ( )

Insert scos from clipboard.

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

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

514  {
515  global $ilCtrl, $ilUser;
516 
517  $this->setLocator();
518  $this->setTabs();
519  $this->getParentGUI()->insertLMChapterClip();
520  }
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 213 of file class.ilSCORM2004NodeGUI.php.

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

214  {
215  global $ilCtrl;
216 
217  $res = $this->getParentGUI()->insertPage(false);
218  $ilCtrl->setParameter($this, "highlight", $res["items"]);
219  $ilCtrl->redirect($this, "showOrganization", "node_".$res["node_id"]);
220  }
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
global $ilCtrl
Definition: ilias.php:18
+ Here is the call graph for this function:

◆ insertPageClip()

ilSCORM2004NodeGUI::insertPageClip ( )

Insert pages from clipboard.

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

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

475  {
476  global $ilCtrl, $ilUser;
477 
478  ilSCORM2004Node::insertPageClip($this->slm_object);
479 
480  $ilCtrl->redirect($this, "showOrganization",
482  }
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 189 of file class.ilSCORM2004NodeGUI.php.

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

190  {
191  global $ilCtrl;
192 
193  $res = $this->getParentGUI()->insertSco(false);
194  $ilCtrl->setParameter($this, "highlight", $res["items"]);
195  $ilCtrl->redirect($this, "showOrganization", "node_".$res["node_id"]);
196  }
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
global $ilCtrl
Definition: ilias.php:18
+ Here is the call graph for this function:

◆ insertScoClip()

ilSCORM2004NodeGUI::insertScoClip ( )

Insert scos from clipboard.

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

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

488  {
489  global $ilCtrl, $ilUser;
490 
491  ilSCORM2004Node::insertScoClip($this->slm_object);
492 
493  $ilCtrl->redirect($this, "showOrganization",
495  }
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 234 of file class.ilSCORM2004NodeGUI.php.

References $ilCtrl, and getParentGUI().

235  {
236  global $ilCtrl;
237  $this->getParentGUI()->insertSpecialPage(true);
238  }
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 225 of file class.ilSCORM2004NodeGUI.php.

References $ilCtrl, and getParentGUI().

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

◆ putInTree()

ilSCORM2004NodeGUI::putInTree (   $a_parent_id,
  $a_target 
)

put this object into content object tree

Todo:
: move to application class

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

References $target, and ilTree\setTableNames().

71  {
72  $tree = new ilTree($this->slm_object->getId());
73  $tree->setTableNames('sahs_sc13_tree', 'sahs_sc13_tree_node');
74  $tree->setTreeTablePK("slm_id");
75 
76  /*$parent_id = (!empty($_GET["obj_id"]))
77  ? $_GET["obj_id"]
78  : $tree->getRootId();*/
79 
80 /* if (!empty($_GET["target"]))
81  {
82  $target = $_GET["target"];
83  }
84  else
85  {
86  // determine last child of current type
87  $childs =& $tree->getChildsByType($parent_id, $this->obj->getType());
88  if (count($childs) == 0)
89  {
90  $target = IL_FIRST_NODE;
91  }
92  else
93  {
94  $target = $childs[count($childs) - 1]["obj_id"];
95  }
96  }*/
97  if (!$tree->isInTree($this->node_obj->getId()))
98  {
99  $tree->insertNode($this->node_obj->getId(), $parent_id, $target);
100  }
101  }
setTableNames($a_table_tree, $a_table_obj_data, $a_table_obj_reference="")
set table names The primary key of the table containing your object_data must be &#39;obj_id&#39; You may use...
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
+ Here is the call graph for this function:

◆ saveAllTitles()

ilSCORM2004NodeGUI::saveAllTitles ( )

Save Titles.

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

References $ilCtrl, and getParentGUI().

266  {
267  global $ilCtrl;
268 
269  $this->getParentGUI()->saveAllTitles(false);
270  $ilCtrl->redirect($this, "showOrganization");
271  }
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 380 of file class.ilSCORM2004NodeGUI.php.

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

Referenced by ilSCORM2004PageNodeGUI\executeCommand().

381  {
382  global $tpl;
383 
384  // content styles
385  include_once("./Services/Style/Content/classes/class.ilObjStyleSheet.php");
386  $tpl->setCurrentBlock("ContentStyle");
387  $tpl->setVariable("LOCATION_CONTENT_STYLESHEET",
388  ilObjStyleSheet::getContentStylePath($this->slm_object->getStyleSheetId()));
389  $tpl->setVariable("LOCATION_ADDITIONAL_STYLESHEET",
391  $tpl->parseCurrentBlock();
392 
393  $tpl->setCurrentBlock("SyntaxStyle");
394  $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET",
396  $tpl->parseCurrentBlock();
397  }
static getPlaceHolderStylePath()
get placeholder style path (for Page Layouts)
global $tpl
Definition: ilias.php:8
static getSyntaxStylePath()
get syntax style path
static getContentStylePath($a_style_id)
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 307 of file class.ilSCORM2004NodeGUI.php.

References $_GET, $ilCtrl, $path, $tpl, ilUtil\getImagePath(), getParentGUI(), and ilTree\setTableNames().

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

308  {
309  global $ilLocator, $tpl, $ilCtrl;
310 
311  $ilLocator->addRepositoryItems($_GET["ref_id"]);
312  $this->getParentGUI()->addLocatorItems();
313 
314  if ($_GET["obj_id"] > 0)
315  {
316  $tree = new ilTree($this->slm_object->getId());
317  $tree->setTableNames('sahs_sc13_tree', 'sahs_sc13_tree_node');
318  $tree->setTreeTablePK("slm_id");
319  $path = $tree->getPathFull($_GET["obj_id"]);
320  for( $i = 1; $i < count($path); $i++)
321  {
322 //var_dump($path[$i]);
323  switch($path[$i]["type"])
324  {
325  case "chap":
326  $ilCtrl->setParameterByClass("ilscorm2004chaptergui", "obj_id",
327  $path[$i]["child"]);
328  $ilLocator->addItem($path[$i]["title"],
329  $ilCtrl->getLinkTargetByClass("ilscorm2004chaptergui",
330  "showOrganization"), "", 0, $path[$i]["type"],
331  ilUtil::getImagePath("icon_chap.svg"));
332  break;
333 
334  case "seqc":
335  $ilCtrl->setParameterByClass("ilscorm2004seqchaptergui", "obj_id",
336  $path[$i]["child"]);
337  $ilLocator->addItem($path[$i]["title"],
338  $ilCtrl->getLinkTargetByClass("ilscorm2004seqchaptergui",
339  "showOrganization"), "", 0, $path[$i]["type"],
340  ilUtil::getImagePath("icon_chap.svg"));
341  break;
342 
343  case "sco":
344  $ilCtrl->setParameterByClass("ilscorm2004scogui", "obj_id",
345  $path[$i]["child"]);
346  $ilLocator->addItem($path[$i]["title"],
347  $ilCtrl->getLinkTargetByClass("ilscorm2004scogui",
348  "showOrganization"), "", 0, $path[$i]["type"],
349  ilUtil::getImagePath("icon_sco.svg"));
350  break;
351 
352  case "ass":
353  $ilCtrl->setParameterByClass("ilscorm2004assetgui", "obj_id",
354  $path[$i]["child"]);
355  $ilLocator->addItem($path[$i]["title"],
356  $ilCtrl->getLinkTargetByClass("ilscorm2004assetgui",
357  "showOrganization"), "", 0, $path[$i]["type"],
358  ilUtil::getImagePath("icon_sca.svg"));
359  break;
360 
361  case "page":
362  $ilCtrl->setParameterByClass("ilscorm2004pagegui", "obj_id",
363  $path[$i]["child"]);
364  $ilLocator->addItem($path[$i]["title"],
365  $ilCtrl->getLinkTargetByClass("ilscorm2004pagegui",
366  "edit"), "", 0, $path[$i]["type"],
367  ilUtil::getImagePath("icon_pg.svg"));
368  break;
369  }
370  }
371  }
372  $ilCtrl->setParameter($this, "obj_id", $_GET["obj_id"]);
373 
374  $tpl->setLocator();
375  }
$path
Definition: aliased.php:25
$_GET["client_id"]
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
global $tpl
Definition: ilias.php:8
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)
setTableNames($a_table_tree, $a_table_obj_data, $a_table_obj_reference="")
set table names The primary key of the table containing your object_data must be &#39;obj_id&#39; You may use...
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
+ 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 40 of file class.ilSCORM2004NodeGUI.php.

41  {
42  $this->parentgui = $a_parentgui;
43  }

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

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

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

162  {
163  global $lng, $ilCtrl, $tpl, $ilTabs;
164 
165  $this->setTabs();
166  $ilTabs->setTabActive("sahs_organization");
167  $this->setLocator();
168  $this->getParentGUI()->showOrganization($this->node_object->getId(),
169  $ilCtrl->getFormAction($this), $this->node_object->getTitle(),
170  ilUtil::getImagePath("icon_".$this->node_object->getType().".svg"),
171  $this, "showOrganization");
172  }
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
setLocator()
Set Locator Items.
global $tpl
Definition: ilias.php:8
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)
global $lng
Definition: privfeed.php:17
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $node_object

ilSCORM2004NodeGUI::$node_object

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

Referenced by ilSCORM2004PageNodeGUI\executeCommand().

◆ $slm_object

ilSCORM2004NodeGUI::$slm_object

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


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