ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
PublicInterface.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
26{
28
29 public function __construct(
31 ) {
32 $this->general_questions_repository = new GeneralQuestionPropertiesRepository(
33 $dic['ilDB'],
34 $dic['component.factory'],
35 $dic['component.repository']
36 );
37 }
42 public function getGeneralQuestionProperties(int $question_id): ?GeneralQuestionProperties
43 {
44 return $this->general_questions_repository->getForQuestionId($question_id);
45 }
46
52 public function areQuestionsAnsweredByUser(int $user_id, array $question_ids): bool
53 {
54 return $this->general_questions_repository->areQuestionsAnsweredByUser($user_id, $question_ids);
55 }
56}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36
areQuestionsAnsweredByUser(int $user_id, array $question_ids)
Checks if an array of question ids is answered by a user or not.
GeneralQuestionPropertiesRepository $general_questions_repository
getGeneralQuestionProperties(int $question_id)
Returns an object containing the basic properties shared by all question types.
$dic
Definition: ltiresult.php:33
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...