ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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)

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

References $lng, and $tpl.

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

Member Function Documentation

◆ displayParameter()

ilSCORMObjectGUI::displayParameter (   $a_name,
  $a_value 
)

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

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

101  {
102  $this->tpl->setCurrentBlock("parameter");
103  $this->tpl->setVariable("TXT_PARAMETER_NAME", $a_name);
104  $this->tpl->setVariable("TXT_PARAMETER_VALUE", $a_value);
105  $this->tpl->parseCurrentBlock();
106  }
+ Here is the caller graph for this function:

◆ getInstance()

& ilSCORMObjectGUI::getInstance (   $a_id)

get instance of specialized GUI class

static

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

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

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