ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups 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.
 getType ()
 Get Node Type.
executeCommand ()
 execute command
 edit ()
 Edit -> switch to ilscorm2004pagegui.
 setTabs ()
 output tabs
- Public Member Functions inherited from ilSCORM2004NodeGUI
 ilSCORM2004NodeGUI ($a_slm_obj, $a_node_id=0)
 constructor
 setParentGUI ($a_parentgui)
 Set Parent GUI class (ilObjSCORM2004LearningModuleGUI).
 getParentGUI ()
 Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
 getNodeObject ($a_node_id)
 Get node object (chapter/sco/page)
 putInTree ($a_parent_id, $a_target)
 put this object into content object tree
 showOrganization ()
 Confirm deletion screen (delete page or structure objects)
 insertChapter ()
 Insert Chapter.
 insertSco ()
 Insert Sco.
 insertAsset ()
 Insert Asset.
 insertPage ()
 Insert Page.
 insertTemplateGUI ()
 Insert Page with Layout.
 insertSpecialPage ()
 Insert special page.
 collapseAll ()
 Collapse all.
 ExpandAll ()
 Expand all.
 saveAllTitles ()
 Save Titles.
 deleteNodes ()
 Delete nodes in the hierarchy.
 cancelDelete ()
 cancel delete
 confirmedDelete ()
 confirmed delete
 setLocator ()
 Set Locator Items.
 setContentStyle ()
 Set content style sheet.
 copyItems ($a_return="showOrganization")
 Copy items to clipboard.
 cutItems ($a_return="showOrganization")
 Copy items to clipboard, then cut them from the current tree.
 insertPageClip ()
 Insert pages from clipboard.
 insertScoClip ()
 Insert scos from clipboard.
 insertAssetClip ()
 Insert assets from clipboard.

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

ilSCORM2004PageNodeGUI::edit ( )

Edit -> switch to ilscorm2004pagegui.

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

References $ilCtrl, and executeCommand().

{
global $ilCtrl;
$ilCtrl->setCmdClass("ilscorm2004pagegui");
$ilCtrl->setCmd("edit");
$this->executeCommand();
}

+ Here is the call graph for this function:

& 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().

{
global $ilCtrl, $tpl;
$next_class = $ilCtrl->getNextClass($this);
$cmd = $ilCtrl->getCmd();
switch($next_class)
{
case "ilscorm2004pagegui":
$tpl->getStandardTemplate();
$this->setContentStyle();
$this->setLocator();
// Determine whether the view of a learning resource should
// be shown in the frameset of ilias, or in a separate window.
//$showViewInFrameset = $this->ilias->ini->readVariable("layout","view_target") == "frame";
$showViewInFrameset = true;
$ilCtrl->setReturn($this, "edit");
include_once("./Modules/Scorm2004/classes/class.ilSCORM2004PageGUI.php");
$page_gui =& new ilSCORM2004PageGUI($this->slm_object->getType(),
$this->node_object->getId(), 0,
$this->getParentGUI()->object->getId(),
$this->slm_object->getAssignedGlossary());
$page_gui->setEditPreview(true);
$page_gui->setPresentationTitle($this->node_object->getTitle());
include_once("./Services/Style/classes/class.ilObjStyleSheet.php");
$this->slm_object->getStyleSheetId(), "sahs"));
if ($this->node_object->tree->getParentId($this->node_object->getId()) > 0)
{
$sco = new ilSCORM2004Sco(
$this->node_object->getSLMObject(),
$this->node_object->tree->getParentId(
$this->node_object->getId()));
if (count($sco->getGlossaryTermIds()) > 1)
{
include_once("./Modules/Scorm2004/classes/class.ilSCORM2004ScoGUI.php");
$page_gui->setGlossaryOverviewInfo(
}
}
$ilCtrl->setParameterByClass("ilobjscorm2004learningmodulegui",
"active_node", $_GET["obj_id"]);
$page_gui->setExplorerUpdater("tree", "tree_div",
$ilCtrl->getLinkTargetByClass("ilobjscorm2004learningmodulegui",
"showTree", "", true));
$ilCtrl->setParameterByClass("ilobjscorm2004learningmodulegui",
"active_node", "");
// set page view link
$view_frame = ilFrameTargetInfo::_getFrame("MainContent");
$page_gui->setLinkParams("ref_id=".$this->slm_object->getRefId());
$tpl->setTitleIcon(ilUtil::getImagePath("icon_pg_b.png"));
$page_gui->activateMetaDataEditor($this->slm_object->getID(),
$this->node_object->getId(), $this->node_object->getType(),
$this->node_object,'MDUpdateListener');
$ret = $ilCtrl->forwardCommand($page_gui);
$this->setTabs();
$tpl->setContent($ret);
break;
default:
$ret =& $this->$cmd();
break;
}
return $ret;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilSCORM2004PageNodeGUI::getType ( )

Get Node Type.

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

{
return "page";
}
ilSCORM2004PageNodeGUI::ilSCORM2004PageNodeGUI (   $a_slm_obj,
  $a_node_id = 0 
)

Constructor public.

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

References $ilCtrl, and ilSCORM2004NodeGUI\ilSCORM2004NodeGUI().

{
global $ilCtrl;
$ilCtrl->saveParameter($this, "obj_id");
parent::ilSCORM2004NodeGUI($a_slm_obj, $a_node_id);
}

+ Here is the call graph for this function:

ilSCORM2004PageNodeGUI::setTabs ( )

output tabs

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

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

Referenced by executeCommand().

{
global $ilTabs, $ilCtrl, $tpl, $lng;
// metadata
/* $ilTabs->addTarget("meta_data",
$ilCtrl->getLinkTargetByClass("ilmdeditorgui",''),
"", "ilmdeditorgui");*/
$tpl->setTitleIcon(ilUtil::getImagePath("icon_pg_b.png"));
$tpl->setTitle(
$lng->txt("sahs_page").": ".$this->node_object->getTitle());
}

+ 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: