3declare(strict_types=1);
41 $a_title_row[] = $a_title_row[count($a_title_row) - 1];
42 $a_title_row2[] = $a_title_row2[count($a_title_row2) - 1];
44 $categories = $this->question->getCategories();
45 for ($i = 0; $i < $categories->getCategoryCount(); $i++) {
46 $cat = $categories->getCategory($i);
48 $a_title_row[] = $cat->title .
" [" . $cat->scale .
"]";
49 $a_title_row2[] =
$lng->
txt(
'other');
64 $categories = $this->question->getCategories();
65 for ($i = 0; $i < $categories->getCategoryCount(); $i++) {
66 $cat = $categories->getCategory($i);
68 $other[] = $cat->scale;
74 $answer = $a_results->getUserResults($a_user_id);
75 if (count($answer) === 0) {
76 $a_row[] = $this->getSkippedValue();
78 foreach ($other as $dummy) {
83 $a_row[] = $answer[0][3];
84 $a_row[] = $answer[0][2];
86 foreach ($other as $scale) {
87 if ($scale == $answer[0][2]) {
88 $a_row[] = $answer[0][1];
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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.
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...