80 return array(
'questionTitles',
'participants',
'statistics',
'arrFilter',
'datasets',
'test');
90 $this->participants = array();
91 $this->questionTitles = array();
103 include_once
"./Modules/Test/classes/class.ilTestEvaluationPassData.php";
104 include_once
"./Modules/Test/classes/class.ilTestEvaluationUserData.php";
106 $this->participants = array();
109 SELECT usr_data.usr_id,
115 FROM tst_pass_result, tst_active
117 ON tst_active.user_fi = usr_data.usr_id
118 WHERE tst_active.active_id = tst_pass_result.active_fi
119 AND tst_active.test_fi = %s
120 ORDER BY usr_data.lastname,
122 tst_pass_result.active_fi,
123 tst_pass_result.pass,
124 tst_pass_result.tstamp
128 $query, array(
'integer'), array($this->
getTest()->getTestId())
164 if(
$row[
"questioncount"] == 0 )
191 $this->test =&
$test;
206 $this->questionTitles[$question_id] = $question_title;
216 if (array_key_exists($question_id, $this->questionTitles))
218 return $this->questionTitles[$question_id];
228 include_once
"./Modules/Test/classes/class.ilTestStatistics.php";
234 if (count($this->arrFilter))
236 $filteredParticipants = array();
237 $courseids = array();
240 if (array_key_exists(
'group', $this->arrFilter))
243 $groupids = array_merge($groupids, $ids);
245 if (array_key_exists(
'course', $this->arrFilter))
248 $courseids = array_merge($courseids, $ids);
250 foreach ($this->participants as $active_id => $participant)
253 if (array_key_exists(
'name', $this->arrFilter))
255 if (!(strpos(strtolower($participant->getName()), strtolower($this->arrFilter[
'name'])) !== FALSE)) $remove = TRUE;
259 if (array_key_exists(
'group', $this->arrFilter))
261 include_once
"./Services/Membership/classes/class.ilParticipants.php";
263 $foundfilter = FALSE;
264 if (count(array_intersect($groupids, $groups))) $foundfilter = TRUE;
265 if (!$foundfilter) $remove = TRUE;
270 if (array_key_exists(
'course', $this->arrFilter))
272 include_once
"./Services/Membership/classes/class.ilParticipants.php";
274 $foundfilter = FALSE;
275 if (count(array_intersect($courseids, $courses))) $foundfilter = TRUE;
276 if (!$foundfilter) $remove = TRUE;
281 if (array_key_exists(
'active_id', $this->arrFilter))
283 if ($active_id != $this->arrFilter[
'active_id']) $remove = TRUE;
286 if (!$remove) $filteredParticipants[$active_id] = $participant;
288 return $filteredParticipants;
298 $this->arrFilter = array();
309 $this->arrFilter = array($by => $text);
324 $this->participants[$active_id] = $participant;
333 return $this->participants[$active_id];
338 return array_key_exists($active_id, $this->participants);
343 unset($this->participants[$active_id]);
353 return array_keys($this->participants);