ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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  {
53  $this->sc_object = new ilSCORMItem($a_id);
54  }
55  $this->tpl = $tpl;
56  $this->lng = $lng;
57  }
SCORM Item.

Member Function Documentation

◆ displayParameter()

ilSCORMObjectGUI::displayParameter (   $a_name,
  $a_value 
)

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

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

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  }
+ 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.

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

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 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: