38 $categories = $this->question->getCategories();
39 for (
$i = 0;
$i < $categories->getCategoryCount();
$i++) {
40 $cat = $categories->getCategory(
$i);
42 $a_title_row[] = $cat->title .
" [" . $cat->scale .
"]";
46 $a_title_row[] = $cat->title .
" [" . $cat->scale .
"]";
47 $a_title_row2[] =
$lng->
txt(
'other');
60 $categories = $this->question->getCategories();
62 $answers = $a_results->getUserResults($a_user_id);
63 if (count($answers) === 0) {
66 for (
$i = 0;
$i < $categories->getCategoryCount();
$i++) {
67 $cat = $categories->getCategory(
$i);
77 for (
$i = 0;
$i < $categories->getCategoryCount();
$i++) {
78 $cat = $categories->getCategory(
$i);
80 foreach ($answers as $answer) {
81 if ($answer[2] == $cat->scale) {
82 $a_row[] = $answer[2];
84 $a_row[] = $answer[1];
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getUserSpecificVariableTitles(array &$a_title_row, array &$a_title_row2, bool $a_do_title, bool $a_do_label)
addUserSpecificResults(array &$a_row, int $a_user_id, $a_results)
getSkippedValue()
Get caption for skipped value.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...