ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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  {
47  require_once 'Modules/TestQuestionPool/classes/class.assQuestion.php';
48  $this->question = assQuestion::_instantiateQuestion($this->questionId);
49  }
50 
51  return $this->question;
52  }
53 }
54 
Class iQuestionCondition.
static _instantiateQuestion($question_id)
Class ilParserQuestionProvider.
setQuestion(iQuestionCondition $question)