ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilSCORMObjectGUI Class Reference

Parent object for SCORM GUI objects. More...

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

Public Member Functions

 ilSCORMObjectGUI ($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.

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

65 {
66 $object = new ilSCORMObject($a_id);
67 switch($object->getType())
68 {
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:

◆ ilSCORMObjectGUI()

ilSCORMObjectGUI::ilSCORMObjectGUI (   $a_id = 0)

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

48 {
49 global $tpl, $lng;
50
51 if($a_id != 0)
52 {
53 $this->sc_object =& new ilSCORMItem($a_id);
54 }
55 $this->tpl =& $tpl;
56 $this->lng =& $lng;
57 }

References $lng, and $tpl.

Field Documentation

◆ $lng

ilSCORMObjectGUI::$lng

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

Referenced by ilSCORMObjectGUI().

◆ $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 ilSCORMObjectGUI().


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