ILIAS  release_8 Revision v8.24
class.ilAssQuestionHintRequestStatisticRegister.php
Go to the documentation of this file.
1<?php
2
28{
33
39 public function addRequestByTestPassIndexAndQuestionId($passIndex, $qId, ilAssQuestionHintRequestStatisticData $request): void
40 {
41 if (!isset($this->requestsByTestPassIndexAndQuestionId[$passIndex])) {
42 $this->requestsByTestPassIndexAndQuestionId[$passIndex] = array();
43 }
44
45 $this->requestsByTestPassIndexAndQuestionId[$passIndex][$qId] = $request;
46 }
47
52 public function getRequestByTestPassIndexAndQuestionId($passIndex, $qId)
53 {
54 if (isset($this->requestsByTestPassIndexAndQuestionId[$passIndex]) && isset($this->requestsByTestPassIndexAndQuestionId[$passIndex][$qId])) {
55 return $this->requestsByTestPassIndexAndQuestionId[$passIndex][$qId];
56 }
57 return null;
58 }
59}
addRequestByTestPassIndexAndQuestionId($passIndex, $qId, ilAssQuestionHintRequestStatisticData $request)