ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
class.ilTestEvaluation.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
11
class
ilTestEvaluation
12
{
16
protected
$db
;
17
21
protected
$testId
;
22
28
public
function
__construct
(
ilDBInterface
$db
,
$testId
)
29
{
30
$this->db =
$db
;
31
$this->testId =
$testId
;
32
}
33
38
public
function
getAllActivesPasses
()
39
{
40
$query
=
"
41
SELECT active_fi, pass
42
FROM tst_active actives
43
INNER JOIN tst_pass_result passes
44
ON active_fi = active_id
45
WHERE test_fi = %s
46
"
;
47
48
$res
= $this->db->queryF(
$query
,
array
(
'integer'
),
array
($this->testId));
49
50
$passes =
array
();
51
52
while
(
$row
= $this->db->fetchAssoc(
$res
))
53
{
54
if
( !isset($passes[
$row
[
'active_fi'
]]) )
55
{
56
$passes[$row[
'active_fi'
]] =
array
();
57
}
58
59
$passes[$row[
'active_fi'
]][] = $row[
'pass'
];
60
}
61
62
return
$passes;
63
}
64
}
$res
$res
Definition:
examplelayouts.sql.php:25
$query
$query
Definition:
examplelayouts.sql.php:24
ilDBInterface
Interface ilDBInterface.
Definition:
interface.ilDBInterface.php:9
ilTestEvaluation
Definition:
class.ilTestEvaluation.php:11
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
ilTestEvaluation\getAllActivesPasses
getAllActivesPasses()
Definition:
class.ilTestEvaluation.php:38
ilTestEvaluation\$db
$db
Definition:
class.ilTestEvaluation.php:16
ilTestEvaluation\$testId
$testId
Definition:
class.ilTestEvaluation.php:21
php
$row
$row
Definition:
10autofilter-selection-1.php:74
ilTestEvaluation\__construct
__construct(ilDBInterface $db, $testId)
ilTestEvaluation constructor.
Definition:
class.ilTestEvaluation.php:28
Modules
Test
classes
class.ilTestEvaluation.php
Generated on Fri Jan 17 2025 19:01:03 for ILIAS by
1.8.13 (using
Doxyfile
)