ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilFormPropertyDispatchGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
30{
31 protected ilCtrl $ctrl;
33
34 public function __construct()
35 {
36 global $DIC;
37
38 $this->ctrl = $DIC->ctrl();
39 }
40
41 public function setItem(ilFormPropertyGUI $a_val): void
42 {
43 $this->item = $a_val;
44 }
45
46 public function getItem(): ilFormPropertyGUI
47 {
48 return $this->item;
49 }
50
55 public function executeCommand()
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 }
68}
Class ilCtrl provides processing control methods.
getNextClass($a_gui_class=null)
@inheritDoc
This class represents a property in a property form.
global $DIC
Definition: shib_login.php:26