Scoring class for tests.
More...
Scoring class for tests.
- Author
- Maximilian Becker mbeck.nosp@m.er@d.nosp@m.ataba.nosp@m.y.de
- Version
- $Id$
Definition at line 14 of file class.ilTestToplistGUI.php.
◆ __construct()
◆ manageTabs()
Definition at line 64 of file class.ilTestToplistGUI.php.
References ilTabsGUI\addTab(), ilTabsGUI\clearTargets(), ilCtrl\getLinkTarget(), ilCtrl\getLinkTargetByClass(), ilTabsGUI\setBackTarget(), ilTabsGUI\setTabActive(), and ilLanguage\txt().
Referenced by __construct().
69 $lng->
txt(
'tst_results_back_introduction'),
75 $lng->
txt(
'toplist_by_score'),
81 $lng->
txt(
'toplist_by_time'),
getLinkTarget( $a_gui_obj, $a_cmd="", $a_anchor="", $a_asynch=false, $xml_style=true)
Get link target for command using gui object.
setTabActive($a_id)
DEPRECATED.
setBackTarget($a_title, $a_target, $a_frame="")
back target for upper context
clearTargets()
clear all targets
getLinkTargetByClass( $a_class, $a_cmd="", $a_anchor="", $a_asynch=false, $xml_style=true)
Get link target for command using gui class name.
addTab($a_id, $a_text, $a_link, $a_frame="")
Add a Tab.
txt($a_topic, $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
◆ prepareTable()
ilTestToplistGUI::prepareTable |
( |
ilTable2GUI |
$table_gui | ) |
|
|
private |
- Parameters
-
Definition at line 163 of file class.ilTestToplistGUI.php.
References $lng, ilTable2GUI\addColumn(), object, ilTable2GUI\setEnableNumInfo(), and ilTable2GUI\setLimit().
Referenced by showResultsToplistByScore(), and showResultsToplistByTime().
167 $table_gui->
addColumn($lng->txt(
'toplist_col_rank'));
168 $table_gui->
addColumn($lng->txt(
'toplist_col_participant'));
169 if ($this->
object->getHighscoreAchievedTS()) {
170 $table_gui->
addColumn($lng->txt(
'toplist_col_achieved'));
173 if ($this->
object->getHighscoreScore()) {
174 $table_gui->
addColumn($lng->txt(
'toplist_col_score'));
177 if ($this->
object->getHighscorePercentage()) {
178 $table_gui->
addColumn($lng->txt(
'toplist_col_percentage'));
181 if ($this->
object->getHighscoreHints()) {
182 $table_gui->
addColumn($lng->txt(
'toplist_col_hints'));
185 if ($this->
object->getHighscoreWTime()) {
186 $table_gui->
addColumn($lng->txt(
'toplist_col_wtime'));
setEnableNumInfo($a_val)
Set enable num info.
Create new PHPExcel object
obj_idprivate
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setLimit($a_limit=0, $a_default_limit=0)
◆ showResultsToplistByScore()
ilTestToplistGUI::showResultsToplistByScore |
( |
| ) |
|
Definition at line 88 of file class.ilTestToplistGUI.php.
References $_GET, $data, $html, $ilUser, $lng, $tpl, ilObjTest\HIGHSCORE_SHOW_OWN_TABLE, ilObjTest\HIGHSCORE_SHOW_TOP_TABLE, object, and prepareTable().
Referenced by __construct().
98 $data = $this->toplist->getGeneralToplistByPercentage(
$_GET[
'ref_id'], $ilUser->getId());
100 $table_gui->setRowTemplate(
'tpl.toplist_tbl_rows.html',
'Modules/Test');
101 $table_gui->setData(
$data);
102 $table_gui->setTitle(sprintf($lng->txt(
'toplist_top_n_results'), $this->
object->getHighscoreTopNum()));
104 $html .= $table_gui->getHTML();
112 $data2 = $this->toplist->getUserToplistByPercentage(
$_GET[
'ref_id'], $ilUser->getID());
114 $table_gui2->setRowTemplate(
'tpl.toplist_tbl_rows.html',
'Modules/Test');
115 $table_gui2->setData($data2);
116 $table_gui2->setTitle($lng->txt(
'toplist_your_result'));
118 $html .= $table_gui2->getHTML();
121 $tpl->setVariable(
"ADM_CONTENT",
$html);
prepareTable(ilTable2GUI $table_gui)
const HIGHSCORE_SHOW_TOP_TABLE
Create new PHPExcel object
obj_idprivate
const HIGHSCORE_SHOW_OWN_TABLE
◆ showResultsToplistByTime()
ilTestToplistGUI::showResultsToplistByTime |
( |
| ) |
|
Definition at line 124 of file class.ilTestToplistGUI.php.
References $_GET, $data, $html, $ilUser, $lng, $tpl, ilObjTest\HIGHSCORE_SHOW_OWN_TABLE, ilObjTest\HIGHSCORE_SHOW_TOP_TABLE, object, and prepareTable().
Referenced by __construct().
134 $data = $this->toplist->getGeneralToplistByWorkingtime(
$_GET[
'ref_id'], $ilUser->getId());
136 $table_gui->setRowTemplate(
'tpl.toplist_tbl_rows.html',
'Modules/Test');
137 $table_gui->setData(
$data);
138 $table_gui->setTitle(sprintf($lng->txt(
'toplist_top_n_results'), $this->
object->getHighscoreTopNum()));
140 $html .= $table_gui->getHTML();
148 $data2 = $this->toplist->getUserToplistByWorkingtime(
$_GET[
'ref_id'], $ilUser->getID());
150 $table_gui2->setRowTemplate(
'tpl.toplist_tbl_rows.html',
'Modules/Test');
151 $table_gui2->setData($data2);
152 $table_gui2->setTitle($lng->txt(
'toplist_your_result'));
154 $html .= $table_gui2->getHTML();
157 $tpl->setVariable(
"ADM_CONTENT",
$html);
prepareTable(ilTable2GUI $table_gui)
const HIGHSCORE_SHOW_TOP_TABLE
Create new PHPExcel object
obj_idprivate
const HIGHSCORE_SHOW_OWN_TABLE
◆ $object
ilTestToplistGUI::$object |
|
protected |
◆ $toplist
ilTestToplistGUI::$toplist |
|
protected |
The documentation for this class was generated from the following file: