ILIAS  trunk Revision v11.0_alpha-1702-gfd3ecb7f852
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilAssQuestionHintRequestStatisticRegister.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
25 {
30 
32  int $pass,
33  int $question_id,
35  ): void {
36  if (!isset($this->requests_by_test_pass_and_question_id[$pass])) {
37  $this->requests_by_test_pass_and_question_id[$pass] = [];
38  }
39 
40  $this->requests_by_test_pass_and_question_id[$pass][$question_id] = $request;
41  }
42 
44  int $pass,
45  int $question_id
47  if (isset($this->requests_by_test_pass_and_question_id[$pass])
48  && isset($this->requests_by_test_pass_and_question_id[$pass][$question_id])) {
49  return $this->requests_by_test_pass_and_question_id[$pass][$question_id];
50  }
51  return null;
52  }
53 }
addRequestByTestPassIndexAndQuestionId(int $pass, int $question_id, ilAssQuestionHintRequestStatisticData $request)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null