ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups 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
 displayParameter ($a_name, $a_value)

Data Fields

 $sc_object
 $tpl
 $lng

Detailed Description

Parent object for AICC GUI objects.

Version
Id:
class.ilAICCObjectGUI.php 12711 2006-12-01 15:24:41Z akill

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

Member Function Documentation

ilAICCObjectGUI::displayParameter (   $a_name,
  $a_value 
)

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

Referenced by ilAICCCourseGUI\view(), and ilAICCUnitGUI\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:

& ilAICCObjectGUI::getInstance (   $a_id)

get instance of specialized GUI class

static

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

Referenced by ilAICCPresentationGUI\view().

{
$object = new ilAICCObject($a_id);
switch($object->getType())
{
case "sbl": // Block
$block =& new ilAICCBlockGUI($a_id);
return $block;
break;
case "sau": // assignable unit
$sau =& new ilAICCUnitGUI($a_id);
return $sau;
break;
case "shd": // course
$shd =& new ilAICCCourseGUI($a_id);
return $shd;
break;
}
}

+ Here is the caller graph for this function:

ilAICCObjectGUI::ilAICCObjectGUI (   $a_id = 0)

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

References $lng, and $tpl.

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

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

+ Here is the caller graph for this function:

Field Documentation

ilAICCObjectGUI::$lng

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

Referenced by ilAICCObjectGUI().

ilAICCObjectGUI::$sc_object

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

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: