ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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.

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 }

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

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

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

Referenced by ilAICCPresentationGUI\view().

+ Here is the caller graph for this function:

◆ ilAICCObjectGUI()

ilAICCObjectGUI::ilAICCObjectGUI (   $a_id = 0)

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

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 }

References $lng, and $tpl.

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: