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

GUI class for AICC Unit element. More...

+ Inheritance diagram for ilAICCUnitGUI:
+ Collaboration diagram for ilAICCUnitGUI:

Public Member Functions

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

Additional Inherited Members

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

Detailed Description

GUI class for AICC Unit element.

Version
Id:
class.ilAICCUnitGUI.php 12711 2006-12-01 15:24:41Z akill

Definition at line 34 of file class.ilAICCUnitGUI.php.

Member Function Documentation

ilAICCUnitGUI::ilAICCUnitGUI (   $a_id)

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

References $files, and ilAICCObjectGUI\ilAICCObjectGUI().

{
$this->sc_object =& new ilAICCUnit($a_id);
$files =& $this->sc_object->getFiles();
}

+ Here is the call graph for this function:

ilAICCUnitGUI::view ( )

Definition at line 44 of file class.ilAICCUnitGUI.php.

References $files, and ilAICCObjectGUI\displayParameter().

{
$this->tpl = new ilTemplate("tpl.main.html", true, true);
$this->tpl->addBlockFile("CONTENT", "content", "tpl.aicc_obj.html", "Modules/ScormAicc");
$this->displayParameter($this->lng->txt("cont_import_id"),
$this->sc_object->getImportId());
$this->displayParameter($this->lng->txt("cont_resource_type"),
$this->sc_object->getResourceType());
$this->displayParameter($this->lng->txt("cont_scorm_type"),
$this->sc_object->getScormType());
$this->displayParameter($this->lng->txt("cont_href"),
$this->sc_object->getHref());
$this->displayParameter($this->lng->txt("cont_xml_base"),
$this->sc_object->getXmlBase());
$this->tpl->setCurrentBlock("partable");
$this->tpl->setVariable("TXT_OBJECT_TYPE", $this->lng->txt("cont_resource"));
$this->tpl->parseCurrentBlock();
// files
$files =& $this->sc_object->getFiles();
for ($i=0; $i<count($files); $i++)
{
$this->displayParameter($this->lng->txt("cont_href"),
$files[$i]->getHRef());
}
$this->tpl->setCurrentBlock("partable");
$this->tpl->setVariable("TXT_OBJECT_TYPE", $this->lng->txt("cont_files"));
$this->tpl->parseCurrentBlock();
// dependencies
$deps =& $this->sc_object->getDependencies();
for ($i=0; $i<count($deps); $i++)
{
$this->displayParameter($this->lng->txt("cont_id_ref"),
$deps[$i]->getIdentifierRef());
}
$this->tpl->setCurrentBlock("partable");
$this->tpl->setVariable("TXT_OBJECT_TYPE", $this->lng->txt("cont_dependencies"));
$this->tpl->parseCurrentBlock();
}

+ Here is the call graph for this function:


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