Class ilTestTopList.
More...
Class ilTestTopList.
Definition at line 7 of file class.ilTestTopList.php.
◆ __construct()
ilTestTopList::__construct |
( |
ilObjTest |
$a_object | ) |
|
◆ formatTime()
ilTestTopList::formatTime |
( |
|
$seconds | ) |
|
|
private |
- Parameters
-
- Returns
- string
Definition at line 444 of file class.ilTestTopList.php.
Referenced by getResultTableRow().
447 $hours = intval(intval($seconds) / 3600);
448 $retval .= str_pad($hours, 2,
"0", STR_PAD_LEFT) .
":";
449 $minutes = intval(($seconds / 60) % 60);
450 $retval .= str_pad($minutes, 2,
"0", STR_PAD_LEFT) .
":";
451 $seconds = intval($seconds % 60);
452 $retval .= str_pad($seconds, 2,
"0", STR_PAD_LEFT);
◆ getResultTableRow()
ilTestTopList::getResultTableRow |
( |
|
$row, |
|
|
|
$i, |
|
|
|
$a_user_id |
|
) |
| |
|
private |
- Parameters
-
array | $row | |
int | $i | |
int | $a_user_id | |
- Returns
- array
Definition at line 405 of file class.ilTestTopList.php.
References $i, $row, array, formatTime(), IL_CAL_UNIX, and object.
Referenced by __construct().
408 $item[
'Rank'] =
$i .
'. ';
410 if ($this->
object->isHighscoreAnon() &&
$row[
'usr_id'] != $a_user_id) {
411 $item[
'Participant'] =
"-, -";
413 $item[
'Participant'] =
$row[
'lastname'] .
', ' .
$row[
'firstname'];
416 if ($this->
object->getHighscoreAchievedTS()) {
420 if ($this->
object->getHighscoreScore()) {
421 $item[
'Score'] =
$row[
'reached_points'] .
' / ' .
$row[
'max_points'];
424 if ($this->
object->getHighscorePercentage()) {
425 $item[
'Percentage'] =
$row[
'percentage'] .
'%';
428 if ($this->
object->getHighscoreHints()) {
429 $item[
'Hints'] =
$row[
'hint_count'];
432 if ($this->
object->getHighscoreWTime()) {
436 $item[
'Highlight'] = (
$row[
'usr_id'] == $a_user_id) ?
'tblrowmarked' :
'';
Create styles array
The data for the language used.
Create new PHPExcel object
obj_idprivate
◆ $object
The documentation for this class was generated from the following file: