ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilLOMemberTestResultGUI Class Reference

test result overview More...

+ Collaboration diagram for ilLOMemberTestResultGUI:

Public Member Functions

 __construct (ilObjectGUI $parent_gui, ilObject $parent, int $a_user_id)
 
 executeCommand ()
 
 getParentObject ()
 
 getParentGUI ()
 
 getUserId ()
 

Protected Member Functions

 viewResult ()
 View results. More...
 

Protected Attributes

ilCtrlInterface $ctrl
 
ilGlobalTemplateInterface $tpl
 

Private Attributes

ilObject $container
 
ilObjectGUI $container_gui
 
int $user_id
 

Detailed Description

test result overview

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

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

Constructor & Destructor Documentation

◆ __construct()

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

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

35 {
36 global $DIC;
37
38 $this->container_gui = $parent_gui;
39 $this->container = $parent;
40 $this->user_id = $a_user_id;
41
42 $this->ctrl = $DIC->ctrl();
43 $this->tpl = $DIC->ui()->mainTemplate();
44 }
global $DIC
Definition: shib_login.php:26

References $DIC, and ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilLOMemberTestResultGUI::executeCommand ( )

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

46 : void
47 {
48 $next_class = $this->ctrl->getNextClass($this);
49 $cmd = $this->ctrl->getCmd();
50
51 switch ($next_class) {
52 default:
53 if (!$cmd) {
54 $cmd = 'viewResult';
55 }
56 $this->$cmd();
57 break;
58 }
59 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ getParentGUI()

ilLOMemberTestResultGUI::getParentGUI ( )

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

67 {
69 }
Class ilObjectGUI Basic methods of all Output classes.

References $container_gui.

◆ getParentObject()

ilLOMemberTestResultGUI::getParentObject ( )

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

61 : ilObject
62 {
63 return $this->container;
64 }
Class ilObject Basic functions for all objects.

References $container.

Referenced by viewResult().

+ Here is the caller graph for this function:

◆ getUserId()

ilLOMemberTestResultGUI::getUserId ( )

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

71 : int
72 {
73 return $this->user_id;
74 }

References $user_id.

Referenced by viewResult().

+ Here is the caller graph for this function:

◆ viewResult()

ilLOMemberTestResultGUI::viewResult ( )
protected

View results.

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

79 : void
80 {
81 $result_table = new ilLOMemberTestResultTableGUI($this, $this->getParentObject(), 'viewResult');
82 $result_table->setUserId($this->getUserId());
83 $result_table->init();
84 $result_table->parse();
85
86 $this->tpl->setContent($result_table->getHTML());
87 }
Class ilLOmemberTestResultTableGUI.

References getParentObject(), and getUserId().

+ Here is the call graph for this function:

Field Documentation

◆ $container

ilObject ilLOMemberTestResultGUI::$container
private

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

Referenced by getParentObject().

◆ $container_gui

ilObjectGUI ilLOMemberTestResultGUI::$container_gui
private

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

Referenced by getParentGUI().

◆ $ctrl

ilCtrlInterface ilLOMemberTestResultGUI::$ctrl
protected

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

◆ $tpl

ilGlobalTemplateInterface ilLOMemberTestResultGUI::$tpl
protected

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

◆ $user_id

int ilLOMemberTestResultGUI::$user_id
private

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

Referenced by getUserId().


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