ILIAS  release_7 Revision v7.30-3-g800a261c036
ilSCORMObjectGUI Class Reference

Parent object for SCORM GUI objects. More...

+ Inheritance diagram for ilSCORMObjectGUI:
+ Collaboration diagram for ilSCORMObjectGUI:

Public Member Functions

 __construct ($a_id=0)
 
getInstance ($a_id)
 get instance of specialized GUI class More...
 
 displayParameter ($a_name, $a_value)
 

Data Fields

 $sc_object
 
 $tpl
 
 $lng
 

Detailed Description

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 40 of file class.ilSCORMObjectGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilSCORMObjectGUI::__construct (   $a_id = 0)

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

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

48 {
49 global $DIC;
50 $tpl = $DIC['tpl'];
51 $lng = $DIC['lng'];
52
53 if ($a_id != 0) {
54 $this->sc_object = new ilSCORMItem($a_id);
55 }
56 $this->tpl = $tpl;
57 $this->lng = $lng;
58 }
global $DIC
Definition: goto.php:24

References $DIC, $lng, and $tpl.

Member Function Documentation

◆ displayParameter()

ilSCORMObjectGUI::displayParameter (   $a_name,
  $a_value 
)

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

103 {
104 $this->tpl->setCurrentBlock("parameter");
105 $this->tpl->setVariable("TXT_PARAMETER_NAME", $a_name);
106 $this->tpl->setVariable("TXT_PARAMETER_VALUE", $a_value);
107 $this->tpl->parseCurrentBlock();
108 }

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 (   $a_id)

get instance of specialized GUI class

static

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

66 {
67 $object = new ilSCORMObject($a_id);
68 switch ($object->getType()) {
69 case "sit": // item
70 $item = new ilSCORMItemGUI($a_id);
71 return $item;
72 break;
73
74 case "sos": // organizations
75 $sos_gui = new ilSCORMOrganizationsGUI($a_id);
76 return $sos_gui;
77 break;
78
79 case "sor": // organization
80 $sor_gui = new ilSCORMOrganizationGUI($a_id);
81 return $sor_gui;
82 break;
83
84 case "sma": // manifest
85 $sma_gui = new ilSCORMManifestGUI($a_id);
86 return $sma_gui;
87 break;
88
89 case "srs": // resources
90 $srs_gui = new ilSCORMResourcesGUI($a_id);
91 return $srs_gui;
92 break;
93
94 case "sre": // resource
95 $sre_gui = new ilSCORMResourceGUI($a_id);
96 return $sre_gui;
97 break;
98 }
99 }
GUI class for SCORM Items.
Parent object for all SCORM objects, that are stored in table scorm_object.
GUI class for SCORM Organization element.
GUI class for SCORM Organizations element.
GUI class for SCORM Resource element.
GUI class for SCORM Resources element.

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

+ Here is the caller graph for this function:

Field Documentation

◆ $lng

ilSCORMObjectGUI::$lng

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

Referenced by __construct().

◆ $sc_object

ilSCORMObjectGUI::$sc_object

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

◆ $tpl

ilSCORMObjectGUI::$tpl

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

Referenced by __construct().


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