ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
SurveyTextQuestionEvaluation Class Reference

Survey text evaluation. More...

+ Inheritance diagram for SurveyTextQuestionEvaluation:
+ Collaboration diagram for SurveyTextQuestionEvaluation:

Public Member Functions

 getGrid ($a_results, $a_abs=true, $a_perc=true)
 
 getChart ($a_results)
 
 getExportGrid ($a_results)
 
 addUserSpecificResults (array &$a_row, $a_user_id, $a_results)
 
- Public Member Functions inherited from SurveyQuestionEvaluation
 __construct (SurveyQuestion $a_question, array $a_finished_ids=null)
 Constructor. More...
 
 getResults ()
 Get results. More...
 
 parseUserSpecificResults ($a_qres, $a_user_id)
 
 getGrid ($a_results, $a_abs=true, $a_perc=true)
 Get grid data. More...
 
 getTextAnswers ($a_results)
 Get text answers. More...
 
 getChart ($a_results)
 Get chart. More...
 
 getSkippedValue ()
 Get caption for skipped value. More...
 
 exportResults ($a_results, $a_do_title, $a_do_label)
 
 getExportGrid ($a_results)
 Get grid data. More...
 
 getUserSpecificVariableTitles (array &$a_title_row, array &$a_title_row2, $a_do_title, $a_do_label)
 Get title columns for user-specific export. More...
 
 addUserSpecificResults (array &$a_row, $a_user_id, $a_results)
 

Additional Inherited Members

- Protected Member Functions inherited from SurveyQuestionEvaluation
 parseResults (ilSurveyEvaluationResults $a_results, array $a_answers, SurveyCategories $a_categories=null)
 Parse answer data into results instance. More...
 
 getChartColors ()
 
 getSurveyId ()
 
 getNrOfParticipants ()
 Returns the number of participants for a survey. More...
 
 getAnswerData ()
 
- Protected Attributes inherited from SurveyQuestionEvaluation
 $question
 
 $finished_ids
 
 $chart_width = 400
 
 $chart_height = 300
 

Detailed Description

Survey text evaluation.

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

Definition at line 12 of file class.SurveyTextQuestionEvaluation.php.

Member Function Documentation

◆ addUserSpecificResults()

SurveyTextQuestionEvaluation::addUserSpecificResults ( array $a_row,
  $a_user_id,
  $a_results 
)

Definition at line 38 of file class.SurveyTextQuestionEvaluation.php.

References SurveyQuestionEvaluation\getSkippedValue().

39  {
40  $answer = $a_results->getUserResults($a_user_id);
41  if($answer === null)
42  {
43  $a_row[] = $this->getSkippedValue();
44  }
45  else
46  {
47  $a_row[] = $answer[0][1];
48  }
49  }
getSkippedValue()
Get caption for skipped value.
+ Here is the call graph for this function:

◆ getChart()

SurveyTextQuestionEvaluation::getChart (   $a_results)

Definition at line 23 of file class.SurveyTextQuestionEvaluation.php.

24  {
25 
26  }

◆ getExportGrid()

SurveyTextQuestionEvaluation::getExportGrid (   $a_results)

Definition at line 33 of file class.SurveyTextQuestionEvaluation.php.

34  {
35 
36  }

◆ getGrid()

SurveyTextQuestionEvaluation::getGrid (   $a_results,
  $a_abs = true,
  $a_perc = true 
)

Definition at line 18 of file class.SurveyTextQuestionEvaluation.php.

19  {
20 
21  }

The documentation for this class was generated from the following file: