21 $categories = $this->question->getCategories();
22 for (
$i = 0;
$i < $categories->getCategoryCount();
$i++) {
23 $cat = $categories->getCategory(
$i);
25 $a_title_row[] = $cat->title .
" [" . $cat->scale .
"]";
29 $a_title_row[] = $cat->title .
" [" . $cat->scale .
"]";
30 $a_title_row2[] =
$lng->txt(
'other');
37 $categories = $this->question->getCategories();
39 $answers = $a_results->getUserResults($a_user_id);
40 if ($answers === null) {
43 for (
$i = 0;
$i < $categories->getCategoryCount();
$i++) {
44 $cat = $categories->getCategory(
$i);
54 for (
$i = 0;
$i < $categories->getCategoryCount();
$i++) {
55 $cat = $categories->getCategory(
$i);
57 foreach ($answers as $answer) {
58 if ($answer[2] == $cat->scale) {
59 $a_row[] = $answer[2];
61 $a_row[] = $answer[1];
Survey question evaluation.
getUserSpecificVariableTitles(array &$a_title_row, array &$a_title_row2, $a_do_title, $a_do_label)
addUserSpecificResults(array &$a_row, $a_user_id, $a_results)
getSkippedValue()
Get caption for skipped value.