ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilSCORM2004ChapterGUI Class Reference

Class ilSCORM2004ChapterGUI. More...

+ Inheritance diagram for ilSCORM2004ChapterGUI:
+ Collaboration diagram for ilSCORM2004ChapterGUI:

Public Member Functions

 ilSCORM2004ChapterGUI ($a_slm_obj, $a_node_id=0)
 Constructor public.
 getType ()
 Get Node Type.
executeCommand ()
 execute command
 setTabs ()
 output tabs
 showProperties ()
 Show Sequencing.
 proceedDragDrop ()
 Perform drag and drop action.
- 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 ilSCORM2004ChapterGUI.

User Interface for Scorm 2004 Chapter Nodes

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

ilSCORM2004ChapterGUI: ilMDEditorGUI, ilNoteGUI

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

Member Function Documentation

& ilSCORM2004ChapterGUI::executeCommand ( )

execute command

Definition at line 66 of file class.ilSCORM2004ChapterGUI.php.

References $_GET, $cmd, $ilCtrl, $ret, $tpl, ilMDEditorGUI\addObserver(), ilSCORM2004NodeGUI\setLocator(), setTabs(), and ilSCORM2004NodeGUI\showOrganization().

{
global $ilCtrl, $tpl, $ilTabs;
$tpl->getStandardTemplate();
$next_class = $ilCtrl->getNextClass($this);
$cmd = $ilCtrl->getCmd();
switch($next_class)
{
// notes
case "ilnotegui":
switch($_GET["notes_mode"])
{
default:
return $this->showOrganization();
}
break;
case 'ilmdeditorgui':
$this->setTabs();
$this->setLocator();
include_once 'Services/MetaData/classes/class.ilMDEditorGUI.php';
$md_gui =& new ilMDEditorGUI($this->slm_object->getID(),
$this->node_object->getId(), $this->node_object->getType());
$md_gui->addObserver($this->node_object,'MDUpdateListener','General');
$ilCtrl->forwardCommand($md_gui);
break;
default:
$ret =& $this->$cmd();
break;
}
}

+ Here is the call graph for this function:

ilSCORM2004ChapterGUI::getType ( )

Get Node Type.

Reimplemented in ilSCORM2004SeqChapterGUI.

Definition at line 58 of file class.ilSCORM2004ChapterGUI.php.

{
return "chap";
}
ilSCORM2004ChapterGUI::ilSCORM2004ChapterGUI (   $a_slm_obj,
  $a_node_id = 0 
)

Constructor public.

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

References $ilCtrl, and ilSCORM2004NodeGUI\ilSCORM2004NodeGUI().

Referenced by ilSCORM2004SeqChapterGUI\ilSCORM2004SeqChapterGUI().

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilSCORM2004ChapterGUI::proceedDragDrop ( )

Perform drag and drop action.

Definition at line 157 of file class.ilSCORM2004ChapterGUI.php.

References $_POST, and $ilCtrl.

{
global $ilCtrl;
$this->slm_object->executeDragDrop($_POST["il_hform_source_id"], $_POST["il_hform_target_id"],
$_POST["il_hform_fc"], $_POST["il_hform_as_subitem"]);
$ilCtrl->redirect($this, "showOrganization");
}
ilSCORM2004ChapterGUI::setTabs ( )

output tabs

Reimplemented in ilSCORM2004SeqChapterGUI.

Definition at line 106 of file class.ilSCORM2004ChapterGUI.php.

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

Referenced by executeCommand(), and showProperties().

{
global $ilTabs, $ilCtrl, $tpl, $lng;
// subelements
$ilTabs->addTarget("sahs_organization",
$ilCtrl->getLinkTarget($this,'showOrganization'),
"showOrganization", get_class($this));
/*
// properties
$ilTabs->addTarget("sahs_properties",
$ilCtrl->getLinkTarget($this,'showProperties'),
"showProperties", get_class($this));
*/
// metadata
$ilTabs->addTarget("meta_data",
$ilCtrl->getLinkTargetByClass("ilmdeditorgui",''),
"", "ilmdeditorgui");
$tpl->setTitleIcon(ilUtil::getImagePath("icon_chap_b.gif"));
$tpl->setTitle(
$lng->txt("sahs_chapter").": ".$this->node_object->getTitle());
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilSCORM2004ChapterGUI::showProperties ( )

Show Sequencing.

Definition at line 133 of file class.ilSCORM2004ChapterGUI.php.

References $tpl, ilSCORM2004SeqTemplate\SEQ_TEMPLATE_DIR, ilSCORM2004NodeGUI\setLocator(), setTabs(), and ilSCORM2004SeqTemplate\templateForChapter().

{
include_once("./Modules/Scorm2004/classes/seq_editor/class.ilSCORM2004Objective.php");
include_once("./Modules/Scorm2004/classes/seq_editor/class.ilSCORM2004SeqTemplate.php");
global $tpl;
$this->setTabs();
$this->setLocator();
$tpl->addBlockfile("ADM_CONTENT", "adm_content", "tpl.scormeditor_chapter_properties.html", "Modules/Scorm2004");
$template = ilSCORM2004SeqTemplate::templateForChapter($this->node_object->getId());
if ($template) {
$item_data = $template->getMetadataProperties();
$tpl->setVariable("VAL_DESCRIPTION",$item_data['description']);
$tpl->setVariable("VAL_TITLE",$item_data['title'] );
$tpl->setVariable("VAL_IMAGE",ilSCORM2004SeqTemplate::SEQ_TEMPLATE_DIR."/images/".$item_data['thumbnail']);
} else {
$tpl->setContent("No didactical scenario assigned.");
}
}

+ Here is the call graph for this function:


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