ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilAssLacQuestionProvider.php
Go to the documentation of this file.
1 <?php
2 
3 require_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 }
Class iQuestionCondition.
static _instantiateQuestion($question_id)
Class ilParserQuestionProvider.
setQuestion(iQuestionCondition $question)