ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilAICCObjectGUI Class Reference

Parent object for AICC GUI objects. More...

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

Public Member Functions

 __construct ($a_id=0)
 
 displayParameter ($a_name, $a_value)
 

Static Public Member Functions

static getInstance ($a_id)
 get instance of specialized GUI class More...
 

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.

Constructor & Destructor Documentation

◆ __construct()

ilAICCObjectGUI::__construct (   $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  }

Member Function Documentation

◆ displayParameter()

ilAICCObjectGUI::displayParameter (   $a_name,
  $a_value 
)

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

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

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

◆ getInstance()

static ilAICCObjectGUI::getInstance (   $a_id)
static

get instance of specialized GUI class

static

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

Referenced by ilAICCPresentationGUI\view().

62  {
63  $object = new ilAICCObject($a_id);
64  switch($object->getType())
65  {
66  case "sbl": // Block
67  $block = new ilAICCBlockGUI($a_id);
68  return $block;
69  break;
70 
71  case "sau": // assignable unit
72  $sau = new ilAICCUnitGUI($a_id);
73  return $sau;
74  break;
75 
76  case "shd": // course
77  $shd = new ilAICCCourseGUI($a_id);
78  return $shd;
79  break;
80  }
81  }
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:

Field Documentation

◆ $lng

ilAICCObjectGUI::$lng

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

Referenced by __construct().

◆ $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 __construct().


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