ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilAICCCourseGUI Class Reference

GUI class for AICC Unit element. More...

+ Inheritance diagram for ilAICCCourseGUI:
+ Collaboration diagram for ilAICCCourseGUI:

Public Member Functions

 __construct ($a_id)
 
 view ()
 
- Public Member Functions inherited from ilAICCObjectGUI
 __construct ($a_id=0)
 
 displayParameter ($a_name, $a_value)
 

Additional Inherited Members

- Static Public Member Functions inherited from ilAICCObjectGUI
static getInstance ($a_id)
 get instance of specialized GUI class More...
 
- 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.ilAICCCourseGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilAICCCourseGUI::__construct (   $a_id)

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

References $files.

38  {
39  parent::__construct();
40  $this->sc_object = new ilAICCCourse($a_id);
41  $files =& $this->sc_object->getFiles();
42  }
$files
Definition: add-vimline.php:18

Member Function Documentation

◆ view()

ilAICCCourseGUI::view ( )

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

References $files, and ilAICCObjectGUI\displayParameter().

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  }
$files
Definition: add-vimline.php:18
special template class to simplify handling of ITX/PEAR
displayParameter($a_name, $a_value)
+ Here is the call graph for this function:

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