ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 More...
 
 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$

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

Member Function Documentation

◆ ilAICCUnitGUI()

ilAICCUnitGUI::ilAICCUnitGUI (   $a_id)

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

38 {
39 parent::ilAICCObjectGUI();
40 $this->sc_object =& new ilAICCUnit($a_id);
41 $files =& $this->sc_object->getFiles();
42 }

◆ view()

ilAICCUnitGUI::view ( )

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

45 {
46 $this->tpl = new ilTemplate("tpl.main.html", true, true);
47 $this->tpl->addBlockFile("CONTENT", "content", "tpl.aicc_obj.html", "Modules/ScormAicc");
48 $this->displayParameter($this->lng->txt("cont_import_id"),
49 $this->sc_object->getImportId());
50 $this->displayParameter($this->lng->txt("cont_resource_type"),
51 $this->sc_object->getResourceType());
52 $this->displayParameter($this->lng->txt("cont_scorm_type"),
53 $this->sc_object->getScormType());
54 $this->displayParameter($this->lng->txt("cont_href"),
55 $this->sc_object->getHref());
56 $this->displayParameter($this->lng->txt("cont_xml_base"),
57 $this->sc_object->getXmlBase());
58 $this->tpl->setCurrentBlock("partable");
59 $this->tpl->setVariable("TXT_OBJECT_TYPE", $this->lng->txt("cont_resource"));
60 $this->tpl->parseCurrentBlock();
61
62 // files
63 $files =& $this->sc_object->getFiles();
64 for ($i=0; $i<count($files); $i++)
65 {
66 $this->displayParameter($this->lng->txt("cont_href"),
67 $files[$i]->getHRef());
68 }
69 $this->tpl->setCurrentBlock("partable");
70 $this->tpl->setVariable("TXT_OBJECT_TYPE", $this->lng->txt("cont_files"));
71 $this->tpl->parseCurrentBlock();
72
73 // dependencies
74 $deps =& $this->sc_object->getDependencies();
75 for ($i=0; $i<count($deps); $i++)
76 {
77 $this->displayParameter($this->lng->txt("cont_id_ref"),
78 $deps[$i]->getIdentifierRef());
79 }
80 $this->tpl->setCurrentBlock("partable");
81 $this->tpl->setVariable("TXT_OBJECT_TYPE", $this->lng->txt("cont_dependencies"));
82 $this->tpl->parseCurrentBlock();
83 }
displayParameter($a_name, $a_value)
special template class to simplify handling of ITX/PEAR

References ilAICCObjectGUI\displayParameter().

+ Here is the call graph for this function:

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