![]() |
CMS
Version 3.9
|
Draws a graph of the aggregated answers for a given question. More...
Static Public Member Functions | |
static | drawSelectGraph ($question, $resultsManager, $answers) |
Draws an interactive graphical view of answers to one question. More... | |
static | drawChecklistGraph ($question, $resultsManager, $answers) |
Draws an interactive graphical view of answers to one question. More... | |
static | drawRatingsGraph ($question, $resultsManager, $answers) |
Draws an interactive graphical view of answers to one question. More... | |
static | drawSelectResults ($surveyField, $qField, $survey_id, $question_id) |
Deprecated - call drawGraph from question renderer. More... | |
static | drawChecklistResults ($surveyField, $qField, $survey_id, $question_id) |
Deprecated - call drawGraph from question renderer. More... | |
static | drawRatingResults ($surveyField, $qField, $survey_id, $question_id) |
Deprecated - call drawGraph from question renderer. More... | |
Static Public Attributes | |
static | $surveyManager |
Draws a graph of the aggregated answers for a given question.
Uses either the default SurveyCreateManager class or a custom manager class set in the calling code using the syntax
QuestionnaireResultsGraph::$surveyManager = MyCustomSurveyManager;
The custom survey manager must contain the following functions in order to use this graphing function:
static function getSurvey($survey_id) static function getQuestion($question_id)
String | $surveyField | - name of the field that has relation "Answers" so that it can retrieve an array of answer DataItem objects with field "value" using the constraint $qField=$question_id |
String | $qField | - the name of the question_id field (e.g., question_id or survey_question_id |
Number | $survey_id | - the key value of the survey or other object that can instantiate the DataItem object that has relation "Answers" |
Number | $question_id | - the key value of the questionnaire or survey question that can instantiate the question DataItem object. |
Definition at line 68 of file results_graphs.inc.
|
static |
Draws an interactive graphical view of answers to one question.
obj | $question | - object of class Question, SurveyQuestion or other question DataItem class |
obj | $resultsManager | - object of the Survey/Questionnaire Results manager class; this class is currently not being used but may be used in the future to specify customization options for graphing |
Array | $answers | - all survey or questionnaire answers to this question |
Definition at line 148 of file results_graphs.inc.
|
static |
Deprecated - call drawGraph from question renderer.
String | $surveyField | |
String | $qField | |
Number | $survey_id | |
Number | $question_id |
Definition at line 267 of file results_graphs.inc.
|
static |
Deprecated - call drawGraph from question renderer.
String | $surveyField | |
String | $qField | |
Number | $survey_id | |
Number | $question_id |
Definition at line 294 of file results_graphs.inc.
|
static |
Draws an interactive graphical view of answers to one question.
obj | $question | - object of class Question, SurveyQuestion or other question DataItem class |
obj | $resultsManager | - object of the Survey/Questionnaire Results manager class; this class is currently not being used but may be used in the future to specify customization options for graphing |
Array | $answers | - all survey or questionnaire answers to this question |
Definition at line 194 of file results_graphs.inc.
|
static |
Draws an interactive graphical view of answers to one question.
obj | $question | - object of class Question, SurveyQuestion or other question DataItem class |
obj | $resultsManager | - object of the Survey/Questionnaire Results manager class; this class is currently not being used but may be used in the future to specify customization options for graphing |
Array | $answers | - all survey or questionnaire answers to this question |
Definition at line 83 of file results_graphs.inc.
|
static |
Deprecated - call drawGraph from question renderer.
String | $surveyField | |
String | $qField | |
Number | $survey_id | |
Number | $question_id |
Definition at line 241 of file results_graphs.inc.
|
static |
Definition at line 70 of file results_graphs.inc.