ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilAssLacQuestionProvider.php
Go to the documentation of this file.
1<?php
2
3require_once 'Modules/TestQuestionPool/classes/class.assQuestion.php';
4
13{
14 /*
15 * @var iQuestionCondition
16 */
17 protected $question;
18
22 protected $questionId;
23
27 public function setQuestionId($questionId)
28 {
29 $this->questionId = $questionId;
30 }
31
36 {
37 $this->question = $question;
38 }
39
43 public function getQuestion()
44 {
45 if ($this->question === null && $this->questionId) {
46 require_once 'Modules/TestQuestionPool/classes/class.assQuestion.php';
47 $this->question = assQuestion::_instantiateQuestion($this->questionId);
48 }
49
50 return $this->question;
51 }
52}
An exception for terminatinating execution or to throw for unit testing.
static _instantiateQuestion($question_id)
Class ilParserQuestionProvider.
setQuestion(iQuestionCondition $question)
Class iQuestionCondition.