ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
All Data Structures Namespaces Files Functions Variables Modules Pages
ilAICCObjectGUI Class Reference

Parent object for AICC GUI objects. More...

+ Inheritance diagram for ilAICCObjectGUI:
+ Collaboration diagram for ilAICCObjectGUI:

Public Member Functions

 ilAICCObjectGUI ($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 AICC GUI objects.

Version
$Id$

Definition at line 36 of file class.ilAICCObjectGUI.php.

Member Function Documentation

◆ displayParameter()

ilAICCObjectGUI::displayParameter (   $a_name,
  $a_value 
)

Definition at line 83 of file class.ilAICCObjectGUI.php.

Referenced by ilAICCCourseGUI\view(), and ilAICCUnitGUI\view().

84  {
85  $this->tpl->setCurrentBlock("parameter");
86  $this->tpl->setVariable("TXT_PARAMETER_NAME", $a_name);
87  $this->tpl->setVariable("TXT_PARAMETER_VALUE", $a_value);
88  $this->tpl->parseCurrentBlock();
89  }
+ Here is the caller graph for this function:

◆ getInstance()

& ilAICCObjectGUI::getInstance (   $a_id)

get instance of specialized GUI class

static

Definition at line 60 of file class.ilAICCObjectGUI.php.

Referenced by ilAICCPresentationGUI\view().

61  {
62  $object = new ilAICCObject($a_id);
63  switch($object->getType())
64  {
65  case "sbl": // Block
66  $block =& new ilAICCBlockGUI($a_id);
67  return $block;
68  break;
69 
70  case "sau": // assignable unit
71  $sau =& new ilAICCUnitGUI($a_id);
72  return $sau;
73  break;
74 
75  case "shd": // course
76  $shd =& new ilAICCCourseGUI($a_id);
77  return $shd;
78  break;
79  }
80  }
GUI class for AICC Unit element.
Parent object for all AICC objects, that are stored in table aicc_object.
GUI class for AICC Unit element.
GUI class for AICC Unit element.
+ Here is the caller graph for this function:

◆ ilAICCObjectGUI()

ilAICCObjectGUI::ilAICCObjectGUI (   $a_id = 0)

Definition at line 43 of file class.ilAICCObjectGUI.php.

References $lng, and $tpl.

44  {
45  global $tpl, $lng;
46 
47  if($a_id != 0)
48  {
49  $this->sc_object =& new ilAICCUnit($a_id);
50  }
51  $this->tpl =& $tpl;
52  $this->lng =& $lng;
53  }

Field Documentation

◆ $lng

ilAICCObjectGUI::$lng

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

Referenced by ilAICCObjectGUI().

◆ $sc_object

ilAICCObjectGUI::$sc_object

Definition at line 38 of file class.ilAICCObjectGUI.php.

◆ $tpl

ilAICCObjectGUI::$tpl

Definition at line 39 of file class.ilAICCObjectGUI.php.

Referenced by ilAICCObjectGUI().


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