3declare(strict_types=1);
40 $categories = $this->question->getCategories();
41 for ($i = 0; $i < $categories->getCategoryCount(); $i++) {
42 $cat = $categories->getCategory($i);
44 $a_title_row[] = $cat->title .
" [" . $cat->scale .
"]";
48 $a_title_row[] = $cat->title .
" [" . $cat->scale .
"]";
49 $a_title_row2[] =
$lng->
txt(
'other');
62 $categories = $this->question->getCategories();
64 $answers = $a_results->getUserResults($a_user_id);
65 if (count($answers) === 0) {
66 $a_row[] = $this->getSkippedValue();
68 for ($i = 0; $i < $categories->getCategoryCount(); $i++) {
69 $cat = $categories->getCategory($i);
79 for ($i = 0; $i < $categories->getCategoryCount(); $i++) {
80 $cat = $categories->getCategory($i);
82 foreach ($answers as $answer) {
83 if ($answer[2] == $cat->scale) {
84 $a_row[] = $answer[2];
86 $a_row[] = $answer[1];
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
addUserSpecificResults(array &$a_row, int $a_user_id, $a_results)
getUserSpecificVariableTitles(array &$a_title_row, array &$a_title_row2, bool $a_do_title, bool $a_do_label)
Get title columns for user-specific export.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
txt(string|LanguageIdentifier $a_topic, ?int $n=null)
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...