Definition at line 11 of file class.ilTestEvaluation.php.
◆ __construct()
◆ getAllActivesPasses()
ilTestEvaluation::getAllActivesPasses |
( |
| ) |
|
- Parameters
-
- Returns
- array
Definition at line 38 of file class.ilTestEvaluation.php.
39 {
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 if (!isset($passes[$row['active_fi']])) {
54 $passes[$row['active_fi']] = array();
55 }
56
57 $passes[$row['active_fi']][] = $row['pass'];
58 }
59
60 return $passes;
61 }
foreach($_POST as $key=> $value) $res
References $query, and $res.
◆ $db
◆ $testId
ilTestEvaluation::$testId |
|
protected |
The documentation for this class was generated from the following file: