4 include_once
"Modules/SurveyQuestionPool/classes/class.SurveyQuestionEvaluation.php";
23 $categories = $this->question->getCategories();
24 for (
$i = 0;
$i < $categories->getCategoryCount();
$i++) {
25 $cat = $categories->getCategory(
$i);
27 $a_title_row[] = $cat->title .
" [" . $cat->scale .
"]";
31 $a_title_row[] = $cat->title .
" [" . $cat->scale .
"]";
32 $a_title_row2[] =
$lng->txt(
'other');
39 $categories = $this->question->getCategories();
41 $answers = $a_results->getUserResults($a_user_id);
42 if ($answers === null) {
45 for (
$i = 0;
$i < $categories->getCategoryCount();
$i++) {
46 $cat = $categories->getCategory(
$i);
56 for (
$i = 0;
$i < $categories->getCategoryCount();
$i++) {
57 $cat = $categories->getCategory(
$i);
59 foreach ($answers as $answer) {
60 if ($answer[2] == $cat->scale) {
61 $a_row[] = $answer[2];
63 $a_row[] = $answer[1];
Survey question evaluation.
getUserSpecificVariableTitles(array &$a_title_row, array &$a_title_row2, $a_do_title, $a_do_label)
Create styles array
The data for the language used.
addUserSpecificResults(array &$a_row, $a_user_id, $a_results)
getSkippedValue()
Get caption for skipped value.