ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilSCORMResourceGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

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

Public Member Functions

 __construct (int $a_id)
 
 view ()
 
- Public Member Functions inherited from ilSCORMObjectGUI
 __construct (int $a_id=0)
 
getInstance (int $a_id)
 
 displayParameter (string $a_name, string $a_value)
 

Additional Inherited Members

- Data Fields inherited from ilSCORMObjectGUI
 $sc_object
 
ilGlobalTemplate $tpl
 
ilLanguage $lng
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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 28 of file class.ilSCORMResourceGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilSCORMResourceGUI::__construct ( int  $a_id)

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

References ILIAS\GlobalScreen\Provider\__construct().

31  {
33  $this->sc_object = new ilSCORMResource($a_id);
34  $files = &$this->sc_object->getFiles();
35  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ view()

ilSCORMResourceGUI::view ( )
Exceptions
ilTemplateException

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

References ilSCORMObjectGUI\displayParameter(), and ILIAS\Repository\lng().

40  : void
41  {
42  $this->tpl = new ilGlobalTemplate("tpl.main.html", true, true);
43  $this->tpl->addBlockFile("CONTENT", "content", "tpl.scorm_obj.html", "Modules/ScormAicc");
44  $this->displayParameter(
45  $this->lng->txt("cont_import_id"),
46  $this->sc_object->getImportId()
47  );
48  $this->displayParameter(
49  $this->lng->txt("cont_resource_type"),
50  $this->sc_object->getResourceType()
51  );
52  $this->displayParameter(
53  $this->lng->txt("cont_scorm_type"),
54  $this->sc_object->getScormType()
55  );
56  $this->displayParameter(
57  $this->lng->txt("cont_href"),
58  $this->sc_object->getHref()
59  );
60  $this->displayParameter(
61  $this->lng->txt("cont_xml_base"),
62  $this->sc_object->getXmlBase()
63  );
64  $this->tpl->setCurrentBlock("partable");
65  $this->tpl->setVariable("TXT_OBJECT_TYPE", $this->lng->txt("cont_resource"));
66  $this->tpl->parseCurrentBlock();
67 
68  // files
69  $files = &$this->sc_object->getFiles();
70  foreach ($files as $value) {
71  $this->displayParameter(
72  $this->lng->txt("cont_href"),
73  $value->getHRef()
74  );
75  }
76  $this->tpl->setCurrentBlock("partable");
77  $this->tpl->setVariable("TXT_OBJECT_TYPE", $this->lng->txt("cont_files"));
78  $this->tpl->parseCurrentBlock();
79 
80  // dependencies
81  $deps = &$this->sc_object->getDependencies();
82  foreach ($deps as $value) {
83  $this->displayParameter(
84  $this->lng->txt("cont_id_ref"),
85  $value->getIdentifierRef()
86  );
87  }
88  $this->tpl->setCurrentBlock("partable");
89  $this->tpl->setVariable("TXT_OBJECT_TYPE", $this->lng->txt("cont_dependencies"));
90  $this->tpl->parseCurrentBlock();
91  }
special template class to simplify handling of ITX/PEAR
displayParameter(string $a_name, string $a_value)
+ Here is the call graph for this function:

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