ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilFormPropertyDispatchGUI Class Reference

Form property dispatcher. More...

+ Collaboration diagram for ilFormPropertyDispatchGUI:

Public Member Functions

 __construct ()
 Constructor. More...
 
 setItem ($a_val)
 Set item. More...
 
 getItem ()
 Get item. More...
 
 executeCommand ()
 Execute command. More...
 

Protected Attributes

 $ctrl
 

Detailed Description

Form property dispatcher.

Forwards control flow to property form input GUI classes.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$ ilFormPropertyDispatchGUI:

Definition at line 13 of file class.ilFormPropertyDispatchGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilFormPropertyDispatchGUI::__construct ( )

Constructor.

Definition at line 24 of file class.ilFormPropertyDispatchGUI.php.

References $DIC.

25  {
26  global $DIC;
27 
28  $this->ctrl = $DIC->ctrl();
29  }
global $DIC
Definition: saml.php:7

Member Function Documentation

◆ executeCommand()

ilFormPropertyDispatchGUI::executeCommand ( )

Execute command.

Definition at line 54 of file class.ilFormPropertyDispatchGUI.php.

References $ctrl, $ilCtrl, and getItem().

55  {
57 
58  $next_class = $ilCtrl->getNextClass($this);
59  $cmd = $ilCtrl->getCmd();
60 
61  if (strtolower(get_class($this->getItem())) != $next_class) {
62  die("ilFormPropertyDispatch: Forward Error. (" . get_class($this->getItem()) . "-" . $next_class . ")");
63  }
64 
65  return $ilCtrl->forwardCommand($this->getItem());
66  }
global $ilCtrl
Definition: ilias.php:18
+ Here is the call graph for this function:

◆ getItem()

ilFormPropertyDispatchGUI::getItem ( )

Get item.

Returns
object item

Definition at line 46 of file class.ilFormPropertyDispatchGUI.php.

Referenced by executeCommand().

47  {
48  return $this->item;
49  }
+ Here is the caller graph for this function:

◆ setItem()

ilFormPropertyDispatchGUI::setItem (   $a_val)

Set item.

Parameters
objectitem

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

37  {
38  $this->item = $a_val;
39  }

Field Documentation

◆ $ctrl

ilFormPropertyDispatchGUI::$ctrl
protected

Definition at line 18 of file class.ilFormPropertyDispatchGUI.php.

Referenced by executeCommand().


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