ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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
44 default:
45 if(!$cmd)
46 {
47 $cmd = 'viewResult';
48 }
49 $this->$cmd();
50
51 break;
52 }
53 return true;
54 }
55
60 public function getParentObject()
61 {
62 return $this->container;
63 }
64
69 public function getParentGUI()
70 {
72 }
73
74
79 public function getUserId()
80 {
81 return $this->user_id;
82 }
83
87 protected function viewResult()
88 {
89 include_once './Modules/Course/classes/Objectives/class.ilLOMemberTestResultTableGUI.php';
90 $result_table = new ilLOMemberTestResultTableGUI($this, $this->getParentObject(),'viewResult');
91 $result_table->setUserId($this->getUserId());
92 $result_table->init();
93 $result_table->parse();
94
95 $GLOBALS['tpl']->setContent($result_table->getHTML());
96 }
97
101 protected function setTabs()
102 {
103 }
104}
105?>
executeCommand()
Execute command @global type $ilCtrl.
__construct(ilObjectGUI $parent_gui, ilObject $parent, $a_user_id)
Constructor.
Class ilLOmemberTestResultTableGUI.
Class ilObjectGUI Basic methods of all Output classes.
Class ilObject Basic functions for all objects.
$GLOBALS['PHPCAS_CLIENT']
This global variable is used by the interface class phpCAS.
Definition: CAS.php:276
global $ilCtrl
Definition: ilias.php:18
$cmd
Definition: sahs_server.php:35