ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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
50 {
51 $this->question = $question;
52 }
53
54 public function getQuestion(): assQuestion
55 {
56 if ($this->question === null && $this->questionId) {
57 $this->question = assQuestion::instantiateQuestion($this->questionId);
58 }
59
60 return $this->question;
61 }
62}
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)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...