5declare(strict_types=1);
12use ILIAS\Repository\RetrievalBase;
29 protected int $pool_ref_id,
30 protected int $pool_obj_id
39 array $parameters = []
49 foreach (
$data as $row) {
58 return count($this->collectData());
63 $access = $this->domain->access();
67 foreach ($all_types as $k => $v) {
68 $all_ids[] = $v[
"question_type_id"];
72 if ($access->checkAccess(
"read",
"", $this->pool_ref_id)) {
74 $this->domain->database(),
76 $this->domain->refinery(),
77 $this->domain->componentRepository()
79 $questionList->setParentObjId($this->pool_obj_id);
80 $questionList->load();
82 $data = $questionList->getQuestionDataArray();
86 if (in_array(
$d[
"question_type_fi"], $all_ids)) {
87 $d[
"id"] =
$d[
"question_id"];
97 return $field ===
"question_id";
Retrieval for self assessment questions from a pool.
count(array $filter, array $parameters)
isFieldNumeric(string $field)
__construct(protected InternalDomainService $domain, protected int $pool_ref_id, protected int $pool_obj_id)
getData(array $fields, ?Range $range=null, ?Order $order=null, array $filter=[], array $parameters=[])
Customizing of pimple-DIC for ILIAS.
Both the subject and the direction need to be specified when expressing an order.
A simple class to express a naive range of whole positive numbers.
static & _getSelfAssessmentQuestionTypes($all_tags=false)
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...