Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 require_once ("./Modules/ScormAicc/classes/AICC/class.ilAICCObjectGUI.php");
00025 require_once ("./Modules/ScormAicc/classes/AICC/class.ilAICCCourse.php");
00026
00034 class ilAICCCourseGUI extends ilAICCObjectGUI
00035 {
00036
00037 function ilAICCCourseGUI($a_id)
00038 {
00039 parent::ilAICCObjectGUI();
00040 $this->sc_object =& new ilAICCCourse($a_id);
00041 $files =& $this->sc_object->getFiles();
00042 }
00043
00044 function view()
00045 {
00046 $this->tpl = new ilTemplate("tpl.main.html", true, true);
00047 $this->tpl->addBlockFile("CONTENT", "content", "tpl.aicc_obj.html", "Modules/ScormAicc");
00048 $this->displayParameter($this->lng->txt("cont_import_id"),
00049 $this->sc_object->getImportId());
00050 $this->displayParameter($this->lng->txt("cont_resource_type"),
00051 $this->sc_object->getResourceType());
00052 $this->displayParameter($this->lng->txt("cont_scorm_type"),
00053 $this->sc_object->getScormType());
00054 $this->displayParameter($this->lng->txt("cont_href"),
00055 $this->sc_object->getHref());
00056 $this->displayParameter($this->lng->txt("cont_xml_base"),
00057 $this->sc_object->getXmlBase());
00058 $this->tpl->setCurrentBlock("partable");
00059 $this->tpl->setVariable("TXT_OBJECT_TYPE", $this->lng->txt("cont_resource"));
00060 $this->tpl->parseCurrentBlock();
00061
00062
00063 $files =& $this->sc_object->getFiles();
00064 for ($i=0; $i<count($files); $i++)
00065 {
00066 $this->displayParameter($this->lng->txt("cont_href"),
00067 $files[$i]->getHRef());
00068 }
00069 $this->tpl->setCurrentBlock("partable");
00070 $this->tpl->setVariable("TXT_OBJECT_TYPE", $this->lng->txt("cont_files"));
00071 $this->tpl->parseCurrentBlock();
00072
00073
00074 $deps =& $this->sc_object->getDependencies();
00075 for ($i=0; $i<count($deps); $i++)
00076 {
00077 $this->displayParameter($this->lng->txt("cont_id_ref"),
00078 $deps[$i]->getIdentifierRef());
00079 }
00080 $this->tpl->setCurrentBlock("partable");
00081 $this->tpl->setVariable("TXT_OBJECT_TYPE", $this->lng->txt("cont_dependencies"));
00082 $this->tpl->parseCurrentBlock();
00083 }
00084 }
00085 ?>