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

GUI class for SCORM Resource element. More...

+ Inheritance diagram for ilSCORMResourceGUI:
+ Collaboration diagram for ilSCORMResourceGUI:

Public Member Functions

 __construct ($a_id)
 
 view ()
 
- Public Member Functions inherited from ilSCORMObjectGUI
 __construct ($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 ilSCORMObjectGUI
 $sc_object
 
 $tpl
 
 $lng
 

Detailed Description

GUI class for SCORM Resource element.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 35 of file class.ilSCORMResourceGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilSCORMResourceGUI::__construct (   $a_id)

Definition at line 38 of file class.ilSCORMResourceGUI.php.

References $files.

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

Member Function Documentation

◆ view()

ilSCORMResourceGUI::view ( )

Definition at line 45 of file class.ilSCORMResourceGUI.php.

References $files, and ilSCORMObjectGUI\displayParameter().

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