ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilFormPropertyDispatchGUI.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
14 {
18  protected $ctrl;
19 
20 
24  public function __construct()
25  {
26  global $DIC;
27 
28  $this->ctrl = $DIC->ctrl();
29  }
30 
36  public function setItem($a_val)
37  {
38  $this->item = $a_val;
39  }
40 
46  public function getItem()
47  {
48  return $this->item;
49  }
50 
54  public function executeCommand()
55  {
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 }
global $DIC
Definition: saml.php:7
global $ilCtrl
Definition: ilias.php:18