![]() |
CMS
Version 3.9
|
Public Member Functions | |
QuestionnaireForm ($mgr, $readOnlyForm=false) | |
makeSubordinate ($subordinate=true) | |
getValidationEngine () | |
button ($text, $url, $confirm=null, $isScript=false) | |
Adds a custom button to the form. More... | |
drawButtons () | |
Draws any additional buttons specified in the calling script. More... | |
getAnswer ($question) | |
writeScript () | |
writeHTML () | |
writeOneQuestion ($question) | |
fromPOST () | |
Put any updated or new answers in the $_POST array into the array of answers that are indexed by question id so that when we draw the form, the answers are shown, even if page is not reloaded. More... | |
drawForm () | |
drawSubmitButtons ($submitLabel) | |
drawReadOnly () | |
drawView () | |
getIndexedAnswers () | |
validate () | |
save () | |
Static Public Member Functions | |
static | incrementArray ($array) |
Public Attributes | |
$mgr | |
$questions | |
$answers | |
$submitLabel = "Save" | |
$validators = array() | |
$requiredText = "<b>You must answer all required questions.</b><br/>" | |
$msg | |
$onSaveComplete = null | |
Callback event handler that is fired after the AutoForm has finished saving data to the database. More... | |
$readOnlyForm | |
Specifies whether the entire form is read-only. More... | |
$id | |
$labelCSS = "" | |
CSS Class to use for label cells. More... | |
$valueCSS = "" | |
CSS Class to use for field/value cells. More... | |
$buttonCSS = "button" | |
CSS Class to use for buttons. More... | |
$inputCSS = "" | |
CSS Class to use for input fields. More... | |
$checkboxCSS = "" | |
CSS Class to use for checkbox fields. More... | |
$markRequiredFields = false | |
Set to true to add an asterisk after required field labels. More... | |
$onFormatLabel = null | |
Label Processing hook. More... | |
$buttons_at_top = false | |
$requiredFieldsText = "* indicates required question" | |
$subordinate = false | |
$buttons = array() | |
The custom buttons collection. More... | |
$allowIncompleteSave = true | |
Allows users to save partially completed forms. More... | |
Definition at line 74 of file questionnaire_form.inc.
QuestionnaireForm::button | ( | $text, | |
$url, | |||
$confirm = null , |
|||
$isScript = false |
|||
) |
Adds a custom button to the form.
string | $text | the button label text |
string | $url | the URL to handle the button press |
string | $confirm | optional confirmation message |
boolean | $isScript | true if the url is javascript code to execute, false if it is a URL to redirect to |
Definition at line 161 of file questionnaire_form.inc.
QuestionnaireForm::drawButtons | ( | ) |
Draws any additional buttons specified in the calling script.
Definition at line 170 of file questionnaire_form.inc.
QuestionnaireForm::drawForm | ( | ) |
Definition at line 365 of file questionnaire_form.inc.
QuestionnaireForm::drawReadOnly | ( | ) |
Definition at line 407 of file questionnaire_form.inc.
QuestionnaireForm::drawSubmitButtons | ( | $submitLabel | ) |
Definition at line 402 of file questionnaire_form.inc.
QuestionnaireForm::drawView | ( | ) |
Definition at line 413 of file questionnaire_form.inc.
QuestionnaireForm::fromPOST | ( | ) |
Put any updated or new answers in the $_POST array into the array of answers that are indexed by question id so that when we draw the form, the answers are shown, even if page is not reloaded.
Also called from function save.
Definition at line 294 of file questionnaire_form.inc.
QuestionnaireForm::getAnswer | ( | $question | ) |
QuestionnaireForm::getIndexedAnswers | ( | ) |
Definition at line 418 of file questionnaire_form.inc.
QuestionnaireForm::getValidationEngine | ( | ) |
Definition at line 147 of file questionnaire_form.inc.
|
static |
Definition at line 481 of file questionnaire_form.inc.
QuestionnaireForm::makeSubordinate | ( | $subordinate = true | ) |
Definition at line 142 of file questionnaire_form.inc.
QuestionnaireForm::QuestionnaireForm | ( | $mgr, | |
$readOnlyForm = false |
|||
) |
Definition at line 101 of file questionnaire_form.inc.
QuestionnaireForm::save | ( | ) |
Definition at line 444 of file questionnaire_form.inc.
QuestionnaireForm::validate | ( | ) |
Definition at line 429 of file questionnaire_form.inc.
QuestionnaireForm::writeHTML | ( | ) |
QuestionnaireForm::writeOneQuestion | ( | $question | ) |
Reimplemented in QuizForm, QuestionnaireResponseView, and QuestionnairePreview.
Definition at line 266 of file questionnaire_form.inc.
QuestionnaireForm::writeScript | ( | ) |
QuestionnaireForm::$allowIncompleteSave = true |
Allows users to save partially completed forms.
Definition at line 99 of file questionnaire_form.inc.
QuestionnaireForm::$answers |
Definition at line 78 of file questionnaire_form.inc.
QuestionnaireForm::$buttonCSS = "button" |
CSS Class to use for buttons.
Definition at line 90 of file questionnaire_form.inc.
QuestionnaireForm::$buttons = array() |
The custom buttons collection.
Definition at line 98 of file questionnaire_form.inc.
QuestionnaireForm::$buttons_at_top = false |
Definition at line 95 of file questionnaire_form.inc.
QuestionnaireForm::$checkboxCSS = "" |
CSS Class to use for checkbox fields.
Definition at line 92 of file questionnaire_form.inc.
QuestionnaireForm::$id |
Definition at line 85 of file questionnaire_form.inc.
QuestionnaireForm::$inputCSS = "" |
CSS Class to use for input fields.
Definition at line 91 of file questionnaire_form.inc.
QuestionnaireForm::$labelCSS = "" |
CSS Class to use for label cells.
Definition at line 88 of file questionnaire_form.inc.
QuestionnaireForm::$markRequiredFields = false |
Set to true to add an asterisk after required field labels.
Definition at line 93 of file questionnaire_form.inc.
QuestionnaireForm::$mgr |
Definition at line 76 of file questionnaire_form.inc.
QuestionnaireForm::$msg |
Definition at line 82 of file questionnaire_form.inc.
QuestionnaireForm::$onFormatLabel = null |
Label Processing hook.
Definition at line 94 of file questionnaire_form.inc.
QuestionnaireForm::$onSaveComplete = null |
Callback event handler that is fired after the AutoForm has finished saving data to the database.
Definition at line 83 of file questionnaire_form.inc.
QuestionnaireForm::$questions |
Definition at line 77 of file questionnaire_form.inc.
QuestionnaireForm::$readOnlyForm |
Specifies whether the entire form is read-only.
Definition at line 84 of file questionnaire_form.inc.
QuestionnaireForm::$requiredFieldsText = "* indicates required question" |
Definition at line 96 of file questionnaire_form.inc.
QuestionnaireForm::$requiredText = "<b>You must answer all required questions.</b><br/>" |
Definition at line 81 of file questionnaire_form.inc.
QuestionnaireForm::$submitLabel = "Save" |
Definition at line 79 of file questionnaire_form.inc.
QuestionnaireForm::$subordinate = false |
Definition at line 97 of file questionnaire_form.inc.
QuestionnaireForm::$validators = array() |
Definition at line 80 of file questionnaire_form.inc.
QuestionnaireForm::$valueCSS = "" |
CSS Class to use for field/value cells.
Definition at line 89 of file questionnaire_form.inc.