ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 @ilCtrl_Calls 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.

35 {
36 global $DIC;
37
38 $this->ctrl = $DIC->ctrl();
39 }
global $DIC
Definition: shib_login.php:26

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

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

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)
@inheritDoc

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

+ Here is the call graph for this function:

◆ getItem()

ilFormPropertyDispatchGUI::getItem ( )

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

47 {
48 return $this->item;
49 }
This class represents a property in a property form.

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: