ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
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
 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:
class.ilSCORMObjectGUI.php 12711 2006-12-01 15:24:41Z akill

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

Member Function Documentation

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().

{
$this->tpl->setCurrentBlock("parameter");
$this->tpl->setVariable("TXT_PARAMETER_NAME", $a_name);
$this->tpl->setVariable("TXT_PARAMETER_VALUE", $a_value);
$this->tpl->parseCurrentBlock();
}

+ Here is the caller graph for this function:

& 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().

{
$object = new ilSCORMObject($a_id);
switch($object->getType())
{
case "sit": // item
$item =& new ilSCORMItemGUI($a_id);
return $item;
break;
case "sos": // organizations
$sos_gui =& new ilSCORMOrganizationsGUI($a_id);
return $sos_gui;
break;
case "sor": // organization
$sor_gui =& new ilSCORMOrganizationGUI($a_id);
return $sor_gui;
break;
case "sma": // manifest
$sma_gui =& new ilSCORMManifestGUI($a_id);
return $sma_gui;
break;
case "srs": // resources
$srs_gui =& new ilSCORMResourcesGUI($a_id);
return $srs_gui;
break;
case "sre": // resource
$sre_gui =& new ilSCORMResourceGUI($a_id);
return $sre_gui;
break;
}
}

+ Here is the caller graph for this function:

ilSCORMObjectGUI::ilSCORMObjectGUI (   $a_id = 0)

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

References $lng, and $tpl.

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

{
global $tpl, $lng;
if($a_id != 0)
{
$this->sc_object =& new ilSCORMItem($a_id);
}
$this->tpl =& $tpl;
$this->lng =& $lng;
}

+ Here is the caller graph for this function:

Field Documentation

ilSCORMObjectGUI::$lng

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

Referenced by ilSCORMObjectGUI().

ilSCORMObjectGUI::$sc_object

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

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: