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

Class ilSCORM2004PageNodeGUI. More...

+ Inheritance diagram for ilSCORM2004PageNodeGUI:
+ Collaboration diagram for ilSCORM2004PageNodeGUI:

Public Member Functions

 __construct ($a_slm_obj, $a_node_id=0)
 Constructor public. More...
 
 getType ()
 Get Node Type. More...
 
 executeCommand ()
 execute command More...
 
 edit ()
 Edit -> switch to ilscorm2004pagegui. More...
 
 setTabs ()
 output tabs More...
 
- Public Member Functions inherited from ilSCORM2004NodeGUI
 __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...
 

Additional Inherited Members

- Data Fields inherited from ilSCORM2004NodeGUI
 $node_object
 
 $slm_object
 
- Protected Attributes inherited from ilSCORM2004NodeGUI
 $lng
 
 $ctrl
 
 $tpl
 
 $tabs
 
 $locator
 
 $user
 

Detailed Description

Class ilSCORM2004PageNodeGUI.

User Interface for Scorm 2004 Page Nodes

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

ilSCORM2004PageNodeGUI: ilSCORM2004PageGUI, ilAssGenFeedbackPageGUI

Definition at line 19 of file class.ilSCORM2004PageNodeGUI.php.

Constructor & Destructor Documentation

◆ __construct()

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

Constructor public.

Definition at line 26 of file class.ilSCORM2004PageNodeGUI.php.

References $DIC, and $ilCtrl.

27  {
28  global $DIC;
29 
30  $this->ctrl = $DIC->ctrl();
31  $this->tpl = $DIC["tpl"];
32  $this->tabs = $DIC->tabs();
33  $this->lng = $DIC->language();
34  $ilCtrl = $DIC->ctrl();
35 
36  $ilCtrl->saveParameter($this, "obj_id");
37 
38  parent::__construct($a_slm_obj, $a_node_id);
39  }
global $DIC
Definition: saml.php:7
global $ilCtrl
Definition: ilias.php:18

Member Function Documentation

◆ edit()

ilSCORM2004PageNodeGUI::edit ( )

Edit -> switch to ilscorm2004pagegui.

Definition at line 153 of file class.ilSCORM2004PageNodeGUI.php.

References ilSCORM2004NodeGUI\$ctrl, $ilCtrl, and executeCommand().

154  {
156 
157  $ilCtrl->setCmdClass("ilscorm2004pagegui");
158  $ilCtrl->setCmd("edit");
159  $this->executeCommand();
160  }
global $ilCtrl
Definition: ilias.php:18
+ Here is the call graph for this function:

◆ executeCommand()

ilSCORM2004PageNodeGUI::executeCommand ( )

execute command

Definition at line 52 of file class.ilSCORM2004PageNodeGUI.php.

References $_GET, ilSCORM2004NodeGUI\$ctrl, $ilCtrl, ilSCORM2004NodeGUI\$node_object, $ret, ilSCORM2004NodeGUI\$tpl, ilFrameTargetInfo\_getFrame(), ilObjStyleSheet\getEffectiveContentStyleId(), ilSCORM2004ScoGUI\getGlossaryOverviewId(), ilUtil\getImagePath(), ilSCORM2004NodeGUI\getParentGUI(), ilSCORM2004NodeGUI\setContentStyle(), ilPageObjectGUI\setEditPreview(), ilSCORM2004NodeGUI\setLocator(), and setTabs().

Referenced by edit().

53  {
55  $tpl = $this->tpl;
56 
57  $next_class = $ilCtrl->getNextClass($this);
58  $cmd = $ilCtrl->getCmd();
59 
60  switch ($next_class) {
61 
62  case "ilscorm2004pagegui":
63  $tpl->getStandardTemplate();
64  $this->setContentStyle();
65  $this->setLocator();
66  // Determine whether the view of a learning resource should
67  // be shown in the frameset of ilias, or in a separate window.
68  $showViewInFrameset = true;
69 
70  $ilCtrl->setReturn($this, "edit");
71  include_once("./Modules/Scorm2004/classes/class.ilSCORM2004PageGUI.php");
72  $page_gui = new ilSCORM2004PageGUI(
73  $this->slm_object->getType(),
74  $this->node_object->getId(),
75  0,
76  $this->getParentGUI()->object->getId(),
77  $this->slm_object->getAssignedGlossary()
78  );
79  $page_gui->setEditPreview(true);
80  $page_gui->setPresentationTitle($this->node_object->getTitle());
81  include_once("./Services/Style/Content/classes/class.ilObjStyleSheet.php");
82  $page_gui->setStyleId(ilObjStyleSheet::getEffectiveContentStyleId(
83  $this->slm_object->getStyleSheetId(),
84  "sahs"
85  ));
86 
87  if ($this->node_object->tree->getParentId($this->node_object->getId()) > 0) {
88  $sco = new ilSCORM2004Sco(
89  $this->node_object->getSLMObject(),
90  $this->node_object->tree->getParentId(
91  $this->node_object->getId()
92  )
93  );
94  if (count($sco->getGlossaryTermIds()) > 1) {
95  include_once("./Modules/Scorm2004/classes/class.ilSCORM2004ScoGUI.php");
96  $page_gui->setGlossaryOverviewInfo(
98  $sco
99  );
100  }
101  }
102 
103  $ilCtrl->setParameterByClass(
104  "ilobjscorm2004learningmodulegui",
105  "active_node",
106  $_GET["obj_id"]
107  );
108  $page_gui->setExplorerUpdater(
109  "tree",
110  "tree_div",
111  $ilCtrl->getLinkTargetByClass(
112  "ilobjscorm2004learningmodulegui",
113  "showTree",
114  "",
115  true
116  )
117  );
118  $ilCtrl->setParameterByClass(
119  "ilobjscorm2004learningmodulegui",
120  "active_node",
121  ""
122  );
123 
124  // set page view link
125  $view_frame = ilFrameTargetInfo::_getFrame("MainContent");
126  $page_gui->setLinkParams("ref_id=" . $this->slm_object->getRefId());
127  $tpl->setTitleIcon(ilUtil::getImagePath("icon_pg.svg"));
128 
129  $page_gui->activateMetaDataEditor(
130  $this->slm_object,
131  $this->node_object->getType(),
132  $this->node_object->getId(),
134  'MDUpdateListener'
135  );
136 
137  $ret = $ilCtrl->forwardCommand($page_gui);
138  $this->setTabs();
139  $tpl->setContent($ret);
140  break;
141 
142  default:
143  $ret = $this->$cmd();
144  break;
145  }
146 
147  return $ret;
148  }
Class ilSCORM2004Sco.
setEditPreview($a_editpreview)
Set Display first Edit tab, then Preview tab, instead of Page and Edit.
$_GET["client_id"]
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
setLocator()
Set Locator Items.
static getGlossaryOverviewId()
Get sco glossary overlay id.
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)
static getEffectiveContentStyleId($a_style_id, $a_type="")
Get effective Style Id.
static _getFrame($a_class, $a_type='')
Get content frame name.
Class ilSCORM2004Page GUI class.
$ret
Definition: parser.php:6
setContentStyle()
Set content style sheet.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getType()

ilSCORM2004PageNodeGUI::getType ( )

Get Node Type.

Definition at line 44 of file class.ilSCORM2004PageNodeGUI.php.

45  {
46  return "page";
47  }

◆ setTabs()

ilSCORM2004PageNodeGUI::setTabs ( )

output tabs

Definition at line 165 of file class.ilSCORM2004PageNodeGUI.php.

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

Referenced by executeCommand().

166  {
167  $ilTabs = $this->tabs;
169  $tpl = $this->tpl;
170  $lng = $this->lng;
171 
172  // metadata
173  /* $ilTabs->addTarget("meta_data",
174  $ilCtrl->getLinkTargetByClass("ilmdeditorgui",''),
175  "", "ilmdeditorgui");*/
176 
177  $tpl->setTitleIcon(ilUtil::getImagePath("icon_pg.svg"));
178  $tpl->setTitle(
179  $lng->txt("sahs_page") . ": " . $this->node_object->getTitle()
180  );
181  }
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:

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