ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilSCORMObjectGUI Class Reference

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

ilSCORMManifest ilSCORMItem ilSCORMOrganization ilSCORMOrganizations ilSCORMResource ilSCORMResources $sc_object
 
ilGlobalTemplate $tpl
 
ilLanguage $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 28 of file class.ilSCORMObjectGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilSCORMObjectGUI::__construct ( int  $a_id = 0)

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

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

35  {
36  global $DIC;
37  $tpl = $DIC['tpl'];
38  $lng = $DIC->language();
39 
40  if ($a_id !== 0) {
41  $this->sc_object = new ilSCORMItem($a_id);
42  }
43  $this->tpl = $tpl;
44  $this->lng = $lng;
45  }
global $DIC
Definition: shib_login.php:22
SCORM Item.
+ Here is the call graph for this function:

Member Function Documentation

◆ displayParameter()

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

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

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

78  : void
79  {
80  $this->tpl->setCurrentBlock("parameter");
81  $this->tpl->setVariable("TXT_PARAMETER_NAME", $a_name);
82  $this->tpl->setVariable("TXT_PARAMETER_VALUE", $a_value);
83  $this->tpl->parseCurrentBlock();
84  }
+ Here is the caller graph for this function:

◆ getInstance()

& ilSCORMObjectGUI::getInstance ( int  $a_id)

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

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

48  {
49  $object = new ilSCORMObject($a_id);
50  switch ($object->getType()) {
51  case "sit": // item
52  $item = new ilSCORMItemGUI($a_id);
53  return $item;
54 
55  case "sos": // organizations
56  $sos_gui = new ilSCORMOrganizationsGUI($a_id);
57  return $sos_gui;
58 
59  case "sor": // organization
60  $sor_gui = new ilSCORMOrganizationGUI($a_id);
61  return $sor_gui;
62 
63  case "sma": // manifest
64  $sma_gui = new ilSCORMManifestGUI($a_id);
65  return $sma_gui;
66 
67  case "srs": // resources
68  $srs_gui = new ilSCORMResourcesGUI($a_id);
69  return $srs_gui;
70 
71  default:
72  case "sre": // resource
73  $sre_gui = new ilSCORMResourceGUI($a_id);
74  return $sre_gui;
75  }
76  }
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

ilLanguage ilSCORMObjectGUI::$lng

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

Referenced by __construct().

◆ $sc_object

◆ $tpl

ilGlobalTemplate ilSCORMObjectGUI::$tpl

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

Referenced by __construct().


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