ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilLOMemberTestResultGUI.php
Go to the documentation of this file.
1 <?php
2 /* (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
12 {
13  private $container = null;
14  private $container_gui = null;
15  private $user_id = 0;
16 
22  public function __construct(ilObjectGUI $parent_gui, ilObject $parent, $a_user_id)
23  {
24  $this->container_gui = $parent_gui;
25  $this->container = $parent;
26  $this->user_id = $a_user_id;
27  }
28 
34  public function executeCommand()
35  {
36  global $ilCtrl;
37 
38  $next_class = $ilCtrl->getNextClass($this);
39  $cmd = $ilCtrl->getCmd();
40 
41  switch ($next_class) {
42 
43  default:
44  if (!$cmd) {
45  $cmd = 'viewResult';
46  }
47  $this->$cmd();
48 
49  break;
50  }
51  return true;
52  }
53 
58  public function getParentObject()
59  {
60  return $this->container;
61  }
62 
67  public function getParentGUI()
68  {
69  return $this->container_gui;
70  }
71 
72 
77  public function getUserId()
78  {
79  return $this->user_id;
80  }
81 
85  protected function viewResult()
86  {
87  include_once './Modules/Course/classes/Objectives/class.ilLOMemberTestResultTableGUI.php';
88  $result_table = new ilLOMemberTestResultTableGUI($this, $this->getParentObject(), 'viewResult');
89  $result_table->setUserId($this->getUserId());
90  $result_table->init();
91  $result_table->parse();
92 
93  $GLOBALS['tpl']->setContent($result_table->getHTML());
94  }
95 
99  protected function setTabs()
100  {
101  }
102 }
Class ilLOmemberTestResultTableGUI.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
executeCommand()
Execute command type $ilCtrl.
global $ilCtrl
Definition: ilias.php:18
Class ilObjectGUI Basic methods of all Output classes.
__construct(ilObjectGUI $parent_gui, ilObject $parent, $a_user_id)
Constructor.