ILIAS  release_8 Revision v8.25-1-g13de6a5eca6
ilSCORMObjectGUI 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 ilSCORMObjectGUI:
+ Collaboration diagram for ilSCORMObjectGUI:

Public Member Functions

 __construct (int $a_id=0)
 
getInstance (int $a_id)
 
 displayParameter (string $a_name, string $a_value)
 

Data Fields

 $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 Parent object for SCORM GUI objects

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.ilSCORMObjectGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilSCORMObjectGUI::__construct ( int  $a_id = 0)

Reimplemented in ilSCORMItemGUI, ilSCORMmanifestGUI, ilSCORMOrganizationGUI, ilSCORMOrganizationsGUI, ilSCORMResourceGUI, and ilSCORMResourcesGUI.

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

38 {
39 global $DIC;
40 $tpl = $DIC['tpl'];
41 $lng = $DIC->language();
42
43 if ($a_id !== 0) {
44 $this->sc_object = new ilSCORMItem($a_id);
45 }
46 $this->tpl = $tpl;
47 $this->lng = $lng;
48 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28

References $DIC, $lng, $tpl, and ILIAS\Repository\lng().

+ Here is the call graph for this function:

Member Function Documentation

◆ displayParameter()

ilSCORMObjectGUI::displayParameter ( string  $a_name,
string  $a_value 
)

Definition at line 84 of file class.ilSCORMObjectGUI.php.

84 : void
85 {
86 $this->tpl->setCurrentBlock("parameter");
87 $this->tpl->setVariable("TXT_PARAMETER_NAME", $a_name);
88 $this->tpl->setVariable("TXT_PARAMETER_VALUE", $a_value);
89 $this->tpl->parseCurrentBlock();
90 }

Referenced by ilSCORMItemGUI\view(), ilSCORMmanifestGUI\view(), ilSCORMOrganizationGUI\view(), ilSCORMOrganizationsGUI\view(), ilSCORMResourceGUI\view(), and ilSCORMResourcesGUI\view().

+ Here is the caller graph for this function:

◆ getInstance()

& ilSCORMObjectGUI::getInstance ( int  $a_id)
Returns
ilSCORMItemGUI|ilSCORMManifestGUI|ilSCORMOrganizationGUI|ilSCORMOrganizationsGUI|ilSCORMResourceGUI|ilSCORMResourcesGUI

Definition at line 53 of file class.ilSCORMObjectGUI.php.

54 {
55 $object = new ilSCORMObject($a_id);
56 switch ($object->getType()) {
57 case "sit": // item
58 $item = new ilSCORMItemGUI($a_id);
59 return $item;
60
61 case "sos": // organizations
62 $sos_gui = new ilSCORMOrganizationsGUI($a_id);
63 return $sos_gui;
64
65 case "sor": // organization
66 $sor_gui = new ilSCORMOrganizationGUI($a_id);
67 return $sor_gui;
68
69 case "sma": // manifest
70 $sma_gui = new ilSCORMManifestGUI($a_id);
71 return $sma_gui;
72
73 case "srs": // resources
74 $srs_gui = new ilSCORMResourcesGUI($a_id);
75 return $srs_gui;
76
77 default:
78 case "sre": // resource
79 $sre_gui = new ilSCORMResourceGUI($a_id);
80 return $sre_gui;
81 }
82 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

Referenced by ilSAHSPresentationGUI\view(), and ilSCORMPresentationGUI\view().

+ Here is the caller graph for this function:

Field Documentation

◆ $lng

ilLanguage ilSCORMObjectGUI::$lng

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

Referenced by __construct().

◆ $sc_object

ilSCORMObjectGUI::$sc_object

Definition at line 33 of file class.ilSCORMObjectGUI.php.

◆ $tpl

ilGlobalTemplate ilSCORMObjectGUI::$tpl

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

Referenced by __construct().


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