![]() |
CMS
Version 3.9
|
Defines the relations and functions required of a Question class that uses Questionnaire form and results classes. More...
Public Member Functions | |
isEditable () | |
Returns true if the question can be edited and false if it cannot. More... | |
QuestionType () | |
setDefaultValues () | |
Sets the default values for a question object: More... | |
isFreeText () | |
isShortText () | |
isCheckList () | |
isRatings () | |
isMultiChoice () | |
isDropDown () | |
isHeading () | |
formatEditableMessage () | |
AbstractQuestion () | |
Public Attributes | |
$editable = true | |
$fieldAliases | |
Defines the relations and functions required of a Question class that uses Questionnaire form and results classes.
Question classes should contain a sort order field called either sort_order or question_number
Definition at line 50 of file question.inc.
AbstractQuestion::AbstractQuestion | ( | ) |
Definition at line 130 of file question.inc.
AbstractQuestion::formatEditableMessage | ( | ) |
Definition at line 122 of file question.inc.
AbstractQuestion::isCheckList | ( | ) |
Definition at line 97 of file question.inc.
AbstractQuestion::isDropDown | ( | ) |
Definition at line 112 of file question.inc.
|
abstract |
Returns true if the question can be edited and false if it cannot.
Reimplemented in SurveyQuestion, and Question.
AbstractQuestion::isFreeText | ( | ) |
Definition at line 87 of file question.inc.
AbstractQuestion::isHeading | ( | ) |
Definition at line 117 of file question.inc.
AbstractQuestion::isMultiChoice | ( | ) |
Definition at line 107 of file question.inc.
AbstractQuestion::isRatings | ( | ) |
Definition at line 102 of file question.inc.
AbstractQuestion::isShortText | ( | ) |
Definition at line 92 of file question.inc.
|
abstract |
Reimplemented in SurveyQuestion, and Question.
AbstractQuestion::setDefaultValues | ( | ) |
Sets the default values for a question object:
Definition at line 73 of file question.inc.
AbstractQuestion::$editable = true |
Definition at line 52 of file question.inc.
AbstractQuestion::$fieldAliases |
Definition at line 54 of file question.inc.