CMS  Version 3.9
QuestionnaireResponseView Class Reference
+ Inheritance diagram for QuestionnaireResponseView:
+ Collaboration diagram for QuestionnaireResponseView:

Public Member Functions

 QuestionnaireResponseView ($mgr)
 
 writeOneQuestion ($question)
 
- Public Member Functions inherited from QuestionnaireForm
 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 ()
 
 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 ()
 

Additional Inherited Members

- Static Public Member Functions inherited from QuestionnaireForm
static incrementArray ($array)
 
- Public Attributes inherited from QuestionnaireForm
 $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...
 

Detailed Description

Definition at line 573 of file questionnaire_form.inc.

Member Function Documentation

◆ QuestionnaireResponseView()

QuestionnaireResponseView::QuestionnaireResponseView (   $mgr)

Definition at line 575 of file questionnaire_form.inc.

576  {
577  parent::QuestionnaireForm($mgr, true);
578  }

◆ writeOneQuestion()

QuestionnaireResponseView::writeOneQuestion (   $question)

Reimplemented from QuestionnaireForm.

Definition at line 580 of file questionnaire_form.inc.

581  {
582  $required = $question->getRequired();
583  $num = ($question->question->question_number) ? $question->question->question_number : $this->mgr->getQuestionNumber();
584 
585  echo " <dt>\n";
586  if (!$question->skipNumbering)
587  {
588  echo "<b>{$num}.</b> ";
589  }
590 
591  echo "{$question->question->question}{$required}</dt>\n";
592  echo " <dd>\n";
593  $question->drawSummaryView();
594  echo " </dd><br/>";
595  echo "</dl>";
596  }
$question

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