ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
All Data Structures Namespaces Files Functions Variables Modules Pages
ilSCORM2004PageNodeGUI Class Reference

Class ilSCORM2004PageNodeGUI. More...

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

Public Member Functions

 ilSCORM2004PageNodeGUI ($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
 ilSCORM2004NodeGUI ($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...
 

Additional Inherited Members

- Data Fields inherited from ilSCORM2004NodeGUI
 $node_object
 
 $slm_object
 

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.

Member Function Documentation

◆ edit()

ilSCORM2004PageNodeGUI::edit ( )

Edit -> switch to ilscorm2004pagegui.

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

References $ilCtrl, and executeCommand().

126  {
127  global $ilCtrl;
128 
129  $ilCtrl->setCmdClass("ilscorm2004pagegui");
130  $ilCtrl->setCmd("edit");
131  $this->executeCommand();
132  }
global $ilCtrl
Definition: ilias.php:18
+ Here is the call graph for this function:

◆ executeCommand()

& ilSCORM2004PageNodeGUI::executeCommand ( )

execute command

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

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

Referenced by edit().

47  {
48  global $ilCtrl, $tpl;
49 
50  $next_class = $ilCtrl->getNextClass($this);
51  $cmd = $ilCtrl->getCmd();
52 
53  switch($next_class)
54  {
55 
56  case "ilscorm2004pagegui":
57  $tpl->getStandardTemplate();
58  $this->setContentStyle();
59  $this->setLocator();
60  // Determine whether the view of a learning resource should
61  // be shown in the frameset of ilias, or in a separate window.
62  //$showViewInFrameset = $this->ilias->ini->readVariable("layout","view_target") == "frame";
63  $showViewInFrameset = true;
64 
65  $ilCtrl->setReturn($this, "edit");
66  include_once("./Modules/Scorm2004/classes/class.ilSCORM2004PageGUI.php");
67  $page_gui =& new ilSCORM2004PageGUI($this->slm_object->getType(),
68  $this->node_object->getId(), 0,
69  $this->getParentGUI()->object->getId(),
70  $this->slm_object->getAssignedGlossary());
71  $page_gui->setEditPreview(true);
72  $page_gui->setPresentationTitle($this->node_object->getTitle());
73  include_once("./Services/Style/classes/class.ilObjStyleSheet.php");
74  $page_gui->setStyleId(ilObjStyleSheet::getEffectiveContentStyleId(
75  $this->slm_object->getStyleSheetId(), "sahs"));
76 
77  if ($this->node_object->tree->getParentId($this->node_object->getId()) > 0)
78  {
79  $sco = new ilSCORM2004Sco(
80  $this->node_object->getSLMObject(),
81  $this->node_object->tree->getParentId(
82  $this->node_object->getId()));
83  if (count($sco->getGlossaryTermIds()) > 1)
84  {
85  include_once("./Modules/Scorm2004/classes/class.ilSCORM2004ScoGUI.php");
86  $page_gui->setGlossaryOverviewInfo(
88  }
89  }
90 
91  $ilCtrl->setParameterByClass("ilobjscorm2004learningmodulegui",
92  "active_node", $_GET["obj_id"]);
93  $page_gui->setExplorerUpdater("tree", "tree_div",
94  $ilCtrl->getLinkTargetByClass("ilobjscorm2004learningmodulegui",
95  "showTree", "", true));
96  $ilCtrl->setParameterByClass("ilobjscorm2004learningmodulegui",
97  "active_node", "");
98 
99  // set page view link
100  $view_frame = ilFrameTargetInfo::_getFrame("MainContent");
101  $page_gui->setLinkParams("ref_id=".$this->slm_object->getRefId());
102  $tpl->setTitleIcon(ilUtil::getImagePath("icon_pg.svg"));
103 
104  $page_gui->activateMetaDataEditor($this->slm_object->getID(),
105  $this->node_object->getId(), $this->node_object->getType(),
106  $this->node_object,'MDUpdateListener');
107 
108 
109  $ret = $ilCtrl->forwardCommand($page_gui);
110  $this->setTabs();
111  $tpl->setContent($ret);
112  break;
113 
114  default:
115  $ret =& $this->$cmd();
116  break;
117  }
118 
119  return $ret;
120  }
Class ilSCORM2004Sco.
setEditPreview($a_editpreview)
Set Display first Edit tab, then Preview tab, instead of Page and Edit.
$_GET["client_id"]
$cmd
Definition: sahs_server.php:35
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
setLocator()
Set Locator Items.
static getGlossaryOverviewId()
Get sco glossary overlay id.
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)
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.
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 38 of file class.ilSCORM2004PageNodeGUI.php.

39  {
40  return "page";
41  }

◆ ilSCORM2004PageNodeGUI()

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

Constructor public.

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

References $ilCtrl.

27  {
28  global $ilCtrl;
29 
30  $ilCtrl->saveParameter($this, "obj_id");
31 
32  parent::ilSCORM2004NodeGUI($a_slm_obj, $a_node_id);
33  }
global $ilCtrl
Definition: ilias.php:18

◆ setTabs()

ilSCORM2004PageNodeGUI::setTabs ( )

output tabs

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

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

Referenced by executeCommand().

138  {
139  global $ilTabs, $ilCtrl, $tpl, $lng;
140 
141  // metadata
142 /* $ilTabs->addTarget("meta_data",
143  $ilCtrl->getLinkTargetByClass("ilmdeditorgui",''),
144  "", "ilmdeditorgui");*/
145 
146  $tpl->setTitleIcon(ilUtil::getImagePath("icon_pg.svg"));
147  $tpl->setTitle(
148  $lng->txt("sahs_page").": ".$this->node_object->getTitle());
149  }
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:40
+ 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: