ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ilFormPropertyDispatchGUI Class Reference

Form property dispatcher. More...

+ Collaboration diagram for ilFormPropertyDispatchGUI:

Public Member Functions

 __construct ()
 
 setItem (ilFormPropertyGUI $a_val)
 
 getItem ()
 
 executeCommand ()
 

Protected Attributes

ilCtrl $ctrl
 
ilFormPropertyGUI $item
 

Detailed Description

Form property dispatcher.

Forwards control flow to property form input GUI classes.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de ilFormPropertyDispatchGUI:
Deprecated:
12 This component will be removed with ILIAS 12

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

Constructor & Destructor Documentation

◆ __construct()

ilFormPropertyDispatchGUI::__construct ( )

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

References $DIC, and ILIAS\Repository\ctrl().

35  {
36  global $DIC;
37 
38  $this->ctrl = $DIC->ctrl();
39  }
global $DIC
Definition: shib_login.php:26
+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilFormPropertyDispatchGUI::executeCommand ( )
Returns
mixed
Exceptions
ilCtrlException

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

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

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

◆ getItem()

ilFormPropertyDispatchGUI::getItem ( )

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

References $item.

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ setItem()

ilFormPropertyDispatchGUI::setItem ( ilFormPropertyGUI  $a_val)

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

41  : void
42  {
43  $this->item = $a_val;
44  }

Field Documentation

◆ $ctrl

ilCtrl ilFormPropertyDispatchGUI::$ctrl
protected

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

Referenced by executeCommand().

◆ $item

ilFormPropertyGUI ilFormPropertyDispatchGUI::$item
protected

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

Referenced by getItem().


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