ILIAS  eassessment Revision 61809
 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.
 insertPage ()
 Insert Page.
 insertTemplateGUI ()
 Insert Page with Layout.
 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.
 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.

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

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

Member Function Documentation

ilSCORM2004PageNodeGUI::edit ( )

Edit -> switch to ilscorm2004pagegui.

Definition at line 165 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 66 of file class.ilSCORM2004PageNodeGUI.php.

References $_GET, $cmd, $ilCtrl, ilSCORM2004NodeGUI\$node_object, $ret, $tpl, ilFrameTargetInfo\_getFrame(), ilObjStyleSheet\getEffectiveContentStyleId(), ilSCORM2004ScoGUI\getGlossaryOverviewId(), ilUtil\getImagePath(), ilSCORM2004NodeGUI\getParentGUI(), 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->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"));
$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(
}
//$page_gui->activateMetaDataEditor($this->content_object->getID(),
// $this->obj->getId(), $this->obj->getType(),
// $this->obj, "MDUpdateListener");
$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->setViewPageLink(ILIAS_HTTP_PATH."/goto.php?target=pg_".$this->obj->getId().
// "_".$_GET["ref_id"],
// $view_frame);
//$page_gui->setTemplateTargetVar("ADM_CONTENT");
//$page_gui->setLinkXML($link_xml);
//$page_gui->enableChangeComments($this->content_object->isActiveHistoryUserComments());
//$page_gui->setFileDownloadLink("ilias.php?cmd=downloadFile&ref_id=".$_GET["ref_id"]."&baseClass=ilLMPresentationGUI");
//$page_gui->setFullscreenLink("ilias.php?cmd=fullscreen&ref_id=".$_GET["ref_id"]."&baseClass=ilLMPresentationGUI");
$page_gui->setLinkParams("ref_id=".$this->slm_object->getRefId());
//$page_gui->setSourcecodeDownloadScript("ilias.php?ref_id=".$_GET["ref_id"]."&baseClass=ilLMPresentationGUI");
/*$page_gui->setPresentationTitle(
ilLMPageObject::_getPresentationTitle($this->obj->getId(),
$this->content_object->getPageHeader(), $this->content_object->isActiveNumbering()));*/
//$page_gui->setLocator($contObjLocator);
//$page_gui->setHeader($this->lng->txt("page").": ".$this->obj->getTitle());
//$page_gui->setEnabledActivation(true);
//$page_gui->setActivationListener($this, "activatePage");
//$page_gui->setActivated($this->obj->getActive());
$tpl->setTitleIcon(ilUtil::getImagePath("icon_pg_b.gif"));
//$tpl->setTitle($this->lng->txt("page").": ".$this->obj->getTitle());
$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 58 of file class.ilSCORM2004PageNodeGUI.php.

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

Constructor public.

Definition at line 46 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 177 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.gif"));
$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: