ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilTestPlayerRandomQuestionSetGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once 'Modules/Test/classes/class.ilTestOutputGUI.php';
5
23{
24 protected function buildTestPassQuestionList()
25 {
26 global $DIC;
27 $ilPluginAdmin = $DIC['ilPluginAdmin'];
28
29 require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionList.php';
30 $questionList = new ilAssQuestionList($this->db, $this->lng, $ilPluginAdmin);
31
32 $questionList->setParentObjId($this->object->getId());
33
34 $questionList->setQuestionInstanceTypeFilter(ilAssQuestionList::QUESTION_INSTANCE_TYPE_DUPLICATES);
35
36 $questionList->setIncludeQuestionIdsFilter($this->testSequence->getQuestionIds());
37
38 return $questionList;
39 }
40
42 {
43 $info = $this->lng->txt('tst_wf_info_optional_question');
44 $info .= ' ' . $this->lng->txt('tst_wf_info_answer_not_adopted');
45 ilUtil::sendInfo($info);
46 }
47}
An exception for terminatinating execution or to throw for unit testing.
Output class for assessment test execution.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
$DIC
Definition: xapitoken.php:46