ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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:

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

Constructor & Destructor Documentation

◆ __construct()

ilFormPropertyDispatchGUI::__construct ( )

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

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

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

Member Function Documentation

◆ executeCommand()

ilFormPropertyDispatchGUI::executeCommand ( )
Returns
mixed
Exceptions
ilCtrlException

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

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

55  {
56  $ilCtrl = $this->ctrl;
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  }
getNextClass($a_gui_class=null)
+ Here is the call graph for this function:

◆ getItem()

ilFormPropertyDispatchGUI::getItem ( )

Definition at line 45 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 40 of file class.ilFormPropertyDispatchGUI.php.

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

Field Documentation

◆ $ctrl

ilCtrl ilFormPropertyDispatchGUI::$ctrl
protected

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

Referenced by executeCommand().

◆ $item

ilFormPropertyGUI ilFormPropertyDispatchGUI::$item
protected

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

Referenced by getItem().


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