ILIAS  release_8 Revision v8.23
ilAssLacQuestionProvider.php
Go to the documentation of this file.
1 <?php
2 
27 {
28  /*
29  * @var iQuestionCondition
30  */
31  protected $question;
32 
36  protected $questionId;
37 
41  public function setQuestionId($questionId): void
42  {
43  $this->questionId = $questionId;
44  }
45 
49  public function setQuestion(iQuestionCondition $question): void
50  {
51  $this->question = $question;
52  }
53 
54  public function getQuestion(): assQuestion
55  {
56  if ($this->question === null && $this->questionId) {
57  require_once 'Modules/TestQuestionPool/classes/class.assQuestion.php';
58  $this->question = assQuestion::_instantiateQuestion($this->questionId);
59  }
60 
61  return $this->question;
62  }
63 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Abstract basic class which is to be extended by the concrete assessment question type classes...
static _instantiateQuestion(int $question_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setQuestion(iQuestionCondition $question)