ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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{
20 function setItem($a_val)
21 {
22 $this->item = $a_val;
23 }
24
30 function getItem()
31 {
32 return $this->item;
33 }
34
38 function executeCommand()
39 {
40 global $ilCtrl;
41
42 $next_class = $ilCtrl->getNextClass($this);
43 $cmd = $ilCtrl->getCmd();
44
45 if (strtolower(get_class($this->getItem())) != $next_class)
46 {
47 die("ilFormPropertyDispatch: Forward Error. (".get_class($this->getItem())."-".$next_class.")");
48 }
49
50 return $ilCtrl->forwardCommand($this->getItem());
51 }
52
53}
An exception for terminatinating execution or to throw for unit testing.
global $ilCtrl
Definition: ilias.php:18
$cmd
Definition: sahs_server.php:35