Inheritance diagram for ilSCORMItemGUI:
Collaboration diagram for ilSCORMItemGUI:Public Member Functions | |
| ilSCORMItemGUI ($a_id) | |
| view () | |
| api () | |
Definition at line 38 of file class.ilSCORMItemGUI.php.
| ilSCORMItemGUI::api | ( | ) |
Definition at line 111 of file class.ilSCORMItemGUI.php.
References $_GET, $ilias, and exit.
{
global $ilias;
$slm_obj =& new ilObjSCORMLearningModule($_GET["ref_id"]);
$func_tpl = new ilTemplate("tpl.scorm_functions.html", true, true, true);
$func_tpl->setVariable("PREFIX", $slm_obj->getAPIFunctionsPrefix());
$func_tpl->parseCurrentBlock();
$this->tpl =& new ilTemplate("tpl.scorm_api.html", true, true, true);
$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'], "/sahs_presentation.php")));
$this->tpl->show();
exit;
}
| ilSCORMItemGUI::ilSCORMItemGUI | ( | $ | a_id | ) |
Definition at line 40 of file class.ilSCORMItemGUI.php.
References ilSCORMObjectGUI::ilSCORMObjectGUI().
{
parent::ilSCORMObjectGUI();
$this->sc_object =& new ilSCORMItem($a_id);
}
Here is the call graph for this function:| ilSCORMItemGUI::view | ( | ) |
Definition at line 46 of file class.ilSCORMItemGUI.php.
References $_GET, $ilias, 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()
: "";
//header("Location: ../".$slm_obj->getDataDirectory()."/".$resource->getHref());
$this->tpl =& new ilTemplate("tpl.scorm_content_frameset.html", true, true, true);
$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());
// echo "itemid: ".$_GET["obj_id"]."userid: ".$ilias->account->getId();
$this->tpl->show();
exit;
}
}
// this point is only reached if now resource could be displayed above!
$this->tpl->addBlockFile("CONTENT", "content", "tpl.scorm_obj.html", true);
$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:
1.7.1