ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 {
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
static _instantiateQuestion($question_id)
Class ilParserQuestionProvider.
setQuestion(iQuestionCondition $question)
Class iQuestionCondition.