ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilSCORMItemGUI Class Reference

GUI class for SCORM Items. More...

+ Inheritance diagram for ilSCORMItemGUI:
+ Collaboration diagram for ilSCORMItemGUI:

Public Member Functions

 ilSCORMItemGUI ($a_id)
 view ()
 api ()
- Public Member Functions inherited from ilSCORMObjectGUI
 ilSCORMObjectGUI ($a_id=0)
getInstance ($a_id)
 get instance of specialized GUI class
 displayParameter ($a_name, $a_value)

Additional Inherited Members

- Data Fields inherited from ilSCORMObjectGUI
 $sc_object
 $tpl
 $lng

Detailed Description

GUI class for SCORM Items.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
Id:
class.ilSCORMItemGUI.php 12711 2006-12-01 15:24:41Z akill

Definition at line 37 of file class.ilSCORMItemGUI.php.

Member Function Documentation

ilSCORMItemGUI::api ( )

Definition at line 108 of file class.ilSCORMItemGUI.php.

References $_GET, and exit.

{
global $ilias;
$slm_obj =& new ilObjSCORMLearningModule($_GET["ref_id"]);
$func_tpl = new ilTemplate("tpl.scorm_functions.html", true, true, "Modules/ScormAicc");
$func_tpl->setVariable("PREFIX", $slm_obj->getAPIFunctionsPrefix());
$func_tpl->parseCurrentBlock();
$this->tpl =& new ilTemplate("tpl.scorm_api.html", true, true, "Modules/ScormAicc");
$this->tpl->setVariable("SCORM_FUNCTIONS", $func_tpl->get());
$this->tpl->setVariable("ITEM_ID", $_GET["obj_id"]);
$this->tpl->setVariable("USER_ID",$ilias->account->getId());
$this->tpl->setVariable("SESSION_ID",session_id());
$this->tpl->setVariable("CODE_BASE", "http://".$_SERVER['SERVER_NAME'].substr($_SERVER['PHP_SELF'], 0, strpos ($_SERVER['PHP_SELF'], "/ilias.php")));
$this->tpl->show();
}
ilSCORMItemGUI::ilSCORMItemGUI (   $a_id)

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

References ilSCORMObjectGUI\ilSCORMObjectGUI().

{
$this->sc_object =& new ilSCORMItem($a_id);
}

+ Here is the call graph for this function:

ilSCORMItemGUI::view ( )

Definition at line 45 of file class.ilSCORMItemGUI.php.

References $_GET, ilSCORMObjectGUI\displayParameter(), and exit.

{
global $ilias;
// get ressource identifier
$id_ref = $this->sc_object->getIdentifierRef();
if ($id_ref != "")
{
$resource =& new ilSCORMResource();
$resource->readByIdRef($id_ref, $this->sc_object->getSLMId());
$slm_obj =& new ilObjSCORMLearningModule($_GET["ref_id"]);
if ($resource->getHref() != "")
{
$param_str = ($this->sc_object->getParameters() != "")
? "?".$this->sc_object->getParameters()
: "";
$this->tpl =& new ilTemplate("tpl.scorm_content_frameset.html", true, true, "Modules/ScormAicc");
$this->tpl->setVariable("ITEM_LOCATION",$slm_obj->getDataDirectory()."/".$resource->getHref().$param_str);
$this->tpl->setVariable("ITEM_ID", $_GET["obj_id"]);
$this->tpl->setVariable("REF_ID", $_GET["ref_id"]);
$this->tpl->setVariable("USER_ID",$ilias->account->getId());
$this->tpl->setVariable("ADAPTER_NAME", $slm_obj->getAPIAdapterName());
$this->tpl->show();
}
}
// this point is only reached if now resource could be displayed above!
$this->tpl->addBlockFile("CONTENT", "content", "tpl.scorm_obj.html", "Modules/ScormAicc");
$this->tpl->setCurrentBlock("par_table");
$this->tpl->setVariable("TXT_OBJECT_TYPE", $this->lng->txt("cont_item"));
$this->displayParameter($this->lng->txt("cont_import_id"),
$this->sc_object->getImportId());
$this->displayParameter($this->lng->txt("cont_id_ref"),
$this->sc_object->getIdentifierRef());
$str_visible = ($this->sc_object->getVisible())
? "true"
: "false";
$this->displayParameter($this->lng->txt("cont_is_visible"),
$str_visible);
$this->displayParameter($this->lng->txt("cont_parameters"),
$this->sc_object->getParameters());
$this->displayParameter($this->lng->txt("cont_sc_title"),
$this->sc_object->getTitle());
$this->displayParameter($this->lng->txt("cont_prereq_type"),
$this->sc_object->getPrereqType());
$this->displayParameter($this->lng->txt("cont_prerequisites"),
$this->sc_object->getPrerequisites());
$this->displayParameter($this->lng->txt("cont_max_time_allowed"),
$this->sc_object->getMaxTimeAllowed());
$this->displayParameter($this->lng->txt("cont_time_limit_action"),
$this->sc_object->getTimeLimitAction());
$this->displayParameter($this->lng->txt("cont_data_from_lms"),
$this->sc_object->getDataFromLms());
$this->displayParameter($this->lng->txt("cont_mastery_score"),
$this->sc_object->getMasteryScore());
$this->tpl->parseCurrentBlock();
}

+ Here is the call graph for this function:


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