ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilFormPropertyDispatchGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilFormPropertyDispatchGUI:

Public Member Functions

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

Protected Attributes

ilCtrl $ctrl
 
ilFormPropertyGUI $item
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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: feed.php:28
+ 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().

46  {
47  return $this->item;
48  }
This class represents a property in a property form.
+ 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: