Definition at line 25 of file PublicInterface.php.
◆ __construct()
ILIAS\TestQuestionPool\Questions\PublicInterface::__construct |
( |
Container |
$dic | ) |
|
Definition at line 29 of file PublicInterface.php.
32 $this->general_questions_repository =
new GeneralQuestionPropertiesRepository(
34 $dic[
'component.factory'],
35 $dic[
'component.repository']
◆ areQuestionsAnsweredByUser()
ILIAS\TestQuestionPool\Questions\PublicInterface::areQuestionsAnsweredByUser |
( |
int |
$user_id, |
|
|
array |
$question_ids |
|
) |
| |
Checks if an array of question ids is answered by a user or not.
- Parameters
-
array<int> | $question_ids user id array |
Definition at line 52 of file PublicInterface.php.
54 return $this->general_questions_repository->areQuestionsAnsweredByUser(
$user_id, $question_ids);
◆ getGeneralQuestionProperties()
ILIAS\TestQuestionPool\Questions\PublicInterface::getGeneralQuestionProperties |
( |
int |
$question_id | ) |
|
Returns an object containing the basic properties shared by all question types.
Definition at line 42 of file PublicInterface.php.
42 : ?GeneralQuestionProperties
44 return $this->general_questions_repository->getForQuestionId($question_id);
◆ $general_questions_repository
The documentation for this class was generated from the following file: