ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 
4 require_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 
41  protected function populateQuestionOptionalMessage()
42  {
43  $info = $this->lng->txt('tst_wf_info_optional_question');
44  $info .= ' ' . $this->lng->txt('tst_wf_info_answer_not_adopted');
46  }
47 }
global $DIC
Definition: saml.php:7
Output class for assessment test execution.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
$info
Definition: index.php:5