ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilLOMemberTestResultGUI Class Reference

test result overview More...

+ Collaboration diagram for ilLOMemberTestResultGUI:

Public Member Functions

 __construct (ilObjectGUI $parent_gui, ilObject $parent, $a_user_id)
 Constructor. More...
 
 executeCommand ()
 Execute command type $ilCtrl. More...
 
 getParentObject ()
 Get container. More...
 
 getParentGUI ()
 Get parent gui. More...
 
 getUserId ()
 Get current user id. More...
 

Protected Member Functions

 viewResult ()
 View results. More...
 
 setTabs ()
 Set tabs. More...
 

Private Attributes

 $container = null
 
 $container_gui = null
 
 $user_id = 0
 

Detailed Description

test result overview

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e
Version
$Id$ ilLOMemberTestResultGUI: ilObjCourseGUI

Definition at line 11 of file class.ilLOMemberTestResultGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilLOMemberTestResultGUI::__construct ( ilObjectGUI  $parent_gui,
ilObject  $parent,
  $a_user_id 
)

Constructor.

Parameters
ilObjectGUI$parent_gui
ilObject$parent

Definition at line 22 of file class.ilLOMemberTestResultGUI.php.

23  {
24  $this->container_gui = $parent_gui;
25  $this->container = $parent;
26  $this->user_id = $a_user_id;
27  }

Member Function Documentation

◆ executeCommand()

ilLOMemberTestResultGUI::executeCommand ( )

Execute command type $ilCtrl.

Returns
boolean

Definition at line 34 of file class.ilLOMemberTestResultGUI.php.

References $ilCtrl.

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  }
global $ilCtrl
Definition: ilias.php:18

◆ getParentGUI()

ilLOMemberTestResultGUI::getParentGUI ( )

Get parent gui.

Returns
ilObjectGUI

Definition at line 67 of file class.ilLOMemberTestResultGUI.php.

References $container_gui.

◆ getParentObject()

ilLOMemberTestResultGUI::getParentObject ( )

Get container.

Returns
ilObject

Definition at line 58 of file class.ilLOMemberTestResultGUI.php.

References $container.

Referenced by viewResult().

+ Here is the caller graph for this function:

◆ getUserId()

ilLOMemberTestResultGUI::getUserId ( )

Get current user id.

Returns
type

Definition at line 77 of file class.ilLOMemberTestResultGUI.php.

References $user_id.

Referenced by viewResult().

+ Here is the caller graph for this function:

◆ setTabs()

ilLOMemberTestResultGUI::setTabs ( )
protected

Set tabs.

Definition at line 99 of file class.ilLOMemberTestResultGUI.php.

100  {
101  }

◆ viewResult()

ilLOMemberTestResultGUI::viewResult ( )
protected

View results.

Definition at line 85 of file class.ilLOMemberTestResultGUI.php.

References $GLOBALS, getParentObject(), and getUserId().

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  }
Class ilLOmemberTestResultTableGUI.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
+ Here is the call graph for this function:

Field Documentation

◆ $container

ilLOMemberTestResultGUI::$container = null
private

Definition at line 13 of file class.ilLOMemberTestResultGUI.php.

Referenced by getParentObject().

◆ $container_gui

ilLOMemberTestResultGUI::$container_gui = null
private

Definition at line 14 of file class.ilLOMemberTestResultGUI.php.

Referenced by getParentGUI().

◆ $user_id

ilLOMemberTestResultGUI::$user_id = 0
private

Definition at line 15 of file class.ilLOMemberTestResultGUI.php.

Referenced by getUserId().


The documentation for this class was generated from the following file: