ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.SurveyTextQuestionEvaluation.php
Go to the documentation of this file.
1 <?php
2 
25 {
26  //
27  // DETAILS
28  //
29 
33  public function getGrid(
34  $a_results,
35  bool $a_abs = true,
36  bool $a_perc = true
37  ): array {
38  return [];
39  }
40 
44  public function getChart($a_results): ?array
45  {
46  return null;
47  }
48 
49 
50  //
51  // EXPORT
52  //
53 
57  public function getExportGrid($a_results): array
58  {
59  return [];
60  }
61 
62  public function addUserSpecificResults(
63  array &$a_row,
64  int $a_user_id,
65  $a_results
66  ): void {
67  $answer = $a_results->getUserResults($a_user_id);
68  if (count($answer) === 0) {
69  $a_row[] = $this->getSkippedValue();
70  } else {
71  $a_row[] = $answer[0][1];
72  }
73  }
74 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getGrid( $a_results, bool $a_abs=true, bool $a_perc=true)
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)
getSkippedValue()
Get caption for skipped value.