ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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$ @ilCtrl_Calls 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.

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

References $DIC.

Member Function Documentation

◆ executeCommand()

ilFormPropertyDispatchGUI::executeCommand ( )

Execute command.

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

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

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

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

47 {
48 return $this->item;
49 }

Referenced by executeCommand().

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