ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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

Constructor & Destructor Documentation

◆ __construct()

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

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

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

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:22
+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilLOMemberTestResultGUI::executeCommand ( )

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

References ILIAS\Repository\ctrl().

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  }
+ Here is the call graph for this function:

◆ getParentGUI()

ilLOMemberTestResultGUI::getParentGUI ( )

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

References $container_gui.

66  : ilObjectGUI
67  {
68  return $this->container_gui;
69  }
Class ilObjectGUI Basic methods of all Output classes.

◆ getParentObject()

ilLOMemberTestResultGUI::getParentObject ( )

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

References $container.

Referenced by viewResult().

61  : ilObject
62  {
63  return $this->container;
64  }
+ Here is the caller graph for this function:

◆ getUserId()

ilLOMemberTestResultGUI::getUserId ( )

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

References $user_id.

Referenced by viewResult().

71  : int
72  {
73  return $this->user_id;
74  }
+ Here is the caller graph for this function:

◆ viewResult()

ilLOMemberTestResultGUI::viewResult ( )
protected

View results.

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

References getParentObject(), and getUserId().

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.
+ 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: