ILIAS  release_8 Revision v8.24
class.ilFormPropertyDispatchGUI.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
29{
30 protected ilCtrl $ctrl;
32
33 public function __construct()
34 {
35 global $DIC;
36
37 $this->ctrl = $DIC->ctrl();
38 }
39
40 public function setItem(ilFormPropertyGUI $a_val): void
41 {
42 $this->item = $a_val;
43 }
44
45 public function getItem(): ilFormPropertyGUI
46 {
47 return $this->item;
48 }
49
54 public function executeCommand()
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 }
67}
Class ilCtrl provides processing control methods.
getNextClass($a_gui_class=null)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This class represents a property in a property form.
global $DIC
Definition: feed.php:28