Controller class

package Webenq_Questionnaires_Manage
author Bart Huttinga

 Methods

Add a questionnaire: process the properties form, then continue to the questionnaires index.

addAction() : void
todo Add Questionnaire Properties Controller Tests

addQuestionAction()

addQuestionAction() 

Renders the data collection for the given questionnaire

collectAction() : void

Delete a questionnaire: process a confirmation form, then continue to the questionnaires index.

deleteAction() : void

downloadAction()

downloadAction() 

Edit a questionnaire: process the properties form, and show the questions in this questionnaire (with its own edit features).

editAction() : void
todo Add Questionnaire Properties Controller Tests

groupAction()

groupAction() 

Renders the overview of questionnaires, and a form to add a new questionnaire.

indexAction() : void

orderAction()

orderAction() 

printAction()

printAction() 

Renders an xform

xformAction() : void

Renders xform data

xformDataAction() : void

_orderPagesAndQuestions()

_orderPagesAndQuestions(array $data) 

Parameters

$data

save new sort order of questionnaire, triggered by javascript sortable action

_orderQuestionnaires(array $data) 

Parameters

$data

array

_orderSubQuestions()

_orderSubQuestions(array $data) 

Parameters

$data

_processPostedValue()

_processPostedValue($key, $value, \Webenq_Model_Respondent $respondent) 

Parameters

$key

$value

$respondent

Removes all answers for the given question and respondent combination

_removeAnswers(\Webenq_Model_QuestionnaireQuestion $qq, \Webenq_Model_Respondent $respondent) 

_saveAnswerId()

_saveAnswerId(\Webenq_Model_QuestionnaireQuestion $qq, $answerIds, \Webenq_Model_Respondent $respondent) 

Parameters

$qq

$answerIds

$respondent

_saveAnswerText()

_saveAnswerText(\Webenq_Model_QuestionnaireQuestion $qq, $answerValues, \Webenq_Model_Respondent $respondent) 

Parameters

$qq

$answerValues

$respondent

_saveEmptyAnswer()

_saveEmptyAnswer(\Webenq_Model_QuestionnaireQuestion $qq, \Webenq_Model_Respondent $respondent) 

Parameters

$qq

$respondent

 Properties

 

$ajaxable : array