ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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)

Reimplemented from ilSCORMObjectGUI.

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

38 {
40 $this->sc_object = new ilSCORMResource($a_id);
41 $files = &$this->sc_object->getFiles();
42 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ view()

ilSCORMResourceGUI::view ( )

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

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

References $i, and ilSCORMObjectGUI\displayParameter().

+ Here is the call graph for this function:

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