Controller for editing respondent tracks, including their tokens
package | Gems |
---|---|
subpackage | Default |
copyright | Copyright (c) 2011 Erasmus MC |
license | New BSD License |
since | Class available since version 1.0 |
inherited_from | \Gems_Default_RespondentChildActionAbstract |
answerAction()
answerExportAction()
autofilterAction($resetMvc = true
)
When true only the filtered resulsts
checkAllAnswersAction()
checkAllTracksAction()
checkTokenAnswersAction()
checkTrackAction()
checkTrackAnswersAction()
createAction()
Uses separate createSnippets instead of createEditSnipppets
createAction()
deactivateAction()
deleteAction()
deleteAction()
deleteTrackAction()
editAction()
editAction()
editTrackAction()
emailAction()
excelAction()
When you want to change the output, there are two places to check:
$this->addExcelColumns($model), where the model can be changed to have labels for columns you need exported
exportAction()
exportTrackAction()
getCreateTitle() : \$string
\$string
getDeactivateQuestion() : \$string
\$string
getDeactivateTitle() : \$string
\$string
getDefaultImportTranslator() : string
string
getDeleteQuestion() : \$string
\$string
getDeleteTitle() : \$string
\$string
getEditTitle() : \$string
\$string
getImportTempDirectory() : string
string
getImportTranslators() : array
array
of \MUtil_Model_ModelTranslatorInterface objectsgetImporter() : \MUtil_Model_Importer
\MUtil_Model_Importer
getIndexTitle() : \$string
\$string
getIndexTitle() : \$string
\$string
getInstanceId() : mixed
Overrule this function if the last item in the page title should be something other than te value of \MUtil_Model::REQUEST_ID.
mixed
getOnEmptyText() : string
string
getReactivateQuestion() : \$string
\$string
getReactivateTitle() : \$string
\$string
getRespondentFilter() : array
array
getRespondentId() : integer
integer
getRespondentTrack() : \Gems_Tracker_RespondentTrack
\Gems_Tracker_RespondentTrack
getRespondentTrackId() : integer
integer
getShowTitle() : \$string
\$string
getSurveyId() : integer
integer
getTitle(string $separator = null
) : string
If the title is an array the seperator concatenates the parts.
string
string
getToken() : \Gems_Tracker_Token
\Gems_Tracker_Token
getTokenId() : string
string
getTokenTopic(integer $count = 1
) : \$string
integer
\$string
getTokenTopicCallable() : callable
callable
Get the getTokenTopic function as a callablegetTopic(integer $count = 1
) : \$string
integer
\$string
getTopic(integer $count = 1
) : \$string
integer
\$string
getTopicCallable() : callable
callable
getTrackEngine() : \Gems_Tracker_Engine_TrackEngineInterface
\Gems_Tracker_Engine_TrackEngineInterface
getTrackId() : integer
integer
importAction()
indexAction()
init() : void
Called from __construct() as final step of object instantiation.
initHtml(boolean $reset = false
) : void
boolean
Throws away any existing html output when true
insertAction()
pdfAction()
questionsAction()
reactivateAction()
recalcAllFieldsAction()
recalcFieldsAction()
showAction()
showAction()
showTrackAction()
undeleteAction()
undeleteTrackAction()
viewAction()
viewSurveyAction()
createModel(boolean $detailed, string $action) : \MUtil_Model_ModelAbstract
The parameters allow you to easily adapt the model to the current action. The $detailed parameter was added, because the most common use of action is a split between detailed and summarized actions.
boolean
True when the current action is not in $summarizedActions.
string
The current action.
\MUtil_Model_ModelAbstract
firstAllowedMenuItem(string $action, string $action2 = null
) : \Gems_Menu_SubMenuItem
string
string
\Gems_Menu_SubMenuItem
getCreateTrackTitle() : string
string
getEmailTokenTitle() : string
string
getExcelData(array $data, \MUtil_Model_ModelAbstract $model) : array
array
\MUtil_Model_ModelAbstract
array
getExportModel() :
getInsertInTrackTitle() : string
string
getRespondent() : \Gems_Tracker_Respondent
\Gems_Tracker_Respondent
getTokenTitle() : string
string
getTrackTitle() : string
string
getView() : \Zend_View_Interface
\Zend_View_Interface
getViewTrackTitle() : string
string
isMultiTracks() : boolean
boolean
isTemplateOnly() : boolean
boolean
loadSnippetLoader()
$accesslog : \Gems_AccessLog
$currentUser : \Gems_User_User
$db : \Zend_Db_Adapter_Abstract
$escort : \GemsEscort
$formatExcelData : boolean
true
$loader : \Gems_Loader
$summarizedActions : array
array('index', 'autofilter', 'create', 'view', 'view-survey')
This determines the value of $detailed in createAction(). As it is usually less of a problem to use a $detailed model with an action that should use a summarized model and I guess there will usually be more detailed actions than summarized ones it seems less work to specify these.
$util : \Gems_Util
$answerExportParameters : array
array('formTitle' => 'getTokenTitle', 'hideGroup' => true)
$answerExportSnippets : mixed
array('Export\\RespondentExportSnippet')
$answerParameters
array()
Currently filled from $defaultTokenParameters
$autofilterParameters : array
array('extraFilter' => 'getRespondentFilter', 'menuEditActions' => array('edit-track'), 'menuShowActions' => array('show-track'))
When the value is a function name of that object, then that functions is executed with the array key as single parameter and the return value is set as the used value
$autofilterSnippets : mixed
array('ModelTableSnippetGeneric', 'Tracker\\Buttons\\TrackIndexButtonRow', 'Tracker\\AvailableTracksSnippet')
$autofilterSnippets : mixed
'ModelTableSnippetGeneric'
$createEditSnippets : mixed
'ModelFormSnippetGeneric'
$createParameters : array
array('createData' => true, 'formTitle' => 'getCreateTrackTitle', 'multiTracks' => 'isMultiTracks', 'trackEngine' => 'getTrackEngine')
When the value is a function name of that object, then that functions is executed with the array key as single parameter and the return value is set as the used value
$createSnippets : mixed
array('Tracker\\TrackUsageOverviewSnippet', 'Tracker\\TrackUsageTextDetailsSnippet', 'Tracker\\EditTrackSnippet', 'Tracker\\TrackSurveyOverviewSnippet')
$defaultParameters : array
array('multiTracks' => 'isMultiTracks', 'respondent' => 'getRespondent')
When the value is a function name of that object, then that functions is executed with the array key as single parameter and the return value is set as the used value
$defaultTokenParameters : array
array('model' => null, 'respondent' => null, 'token' => 'getToken', 'tokenId' => 'getTokenId')
When the value is a function name of that object, then that functions is executed with the array key as single parameter and the return value is set as the used value
$deleteParameters : array
array('formTitle' => null, 'topicCallable' => 'getTokenTopicCallable')
When the value is a function name of that object, then that functions is executed with the array key as single parameter and the return value is set as the used value
$deleteSnippets : mixed
'ModelItemYesNoDeleteSnippetGeneric'
$deleteTrackParameters : array
array('formTitle' => null, 'multiTracks' => 'isMultiTracks', 'respondentTrack' => 'getRespondentTrack', 'respondentTrackId' => 'getRespondentTrackId', 'topicCallable' => 'getTopicCallable', 'trackEngine' => 'getTrackEngine', 'trackId' => 'getTrackId')
$deleteTrackSnippets : mixed
array('Tracker\\DeleteTrackSnippet', 'Tracker\\TrackTokenOverviewSnippet', 'Tracker\\TrackUsageOverviewSnippet')
$editTrackParameters : array
array('createData' => false, 'formTitle' => 'getTrackTitle', 'multiTracks' => 'isMultiTracks', 'respondentTrack' => 'getRespondentTrack', 'respondentTrackId' => 'getRespondentTrackId', 'trackEngine' => 'getTrackEngine', 'trackId' => 'getTrackId')
$editTrackSnippets : mixed
array('Tracker\\EditTrackSnippet', 'Tracker\\TrackUsageTextDetailsSnippet', 'Tracker\\TrackTokenOverviewSnippet', 'Tracker\\TrackUsageOverviewSnippet')
$emailParameters
array('formTitle' => 'getEmailTokenTitle', 'identifier' => '_getIdParam', 'mailTarget' => 'token', 'routeAction' => 'show', 'templateOnly' => 'isTemplateOnly', 'view' => 'getView')
Currently mostly filled from $defaultTokenParameters
$emailSnippets : mixed
array('Mail_TokenMailFormSnippet')
$exportFormSnippets
'Export\\ExportFormSnippet'
$exportTrackParameters : array
array('formTitle' => 'getTrackTitle', 'respondentTrack' => 'getRespondentTrack')
$exportTrackSnippets : mixed
array('Export\\RespondentExportSnippet')
$importParameters : array
array('respondent' => null)
When the value is a function name of that object, then that functions is executed with the array key as single parameter and the return value is set as the used value
$indexStartSnippets : mixed
array('Generic\\ContentTitleSnippet', 'AutosearchFormSnippet')
$indexStopSnippets : mixed
'Generic\\CurrentSiblingsButtonRowSnippet'
$insertParameters : array
array('createData' => true, 'formTitle' => 'getInsertInTrackTitle', 'model' => null, 'surveyId' => 'getSurveyId')
$insertSnippets : mixed
array('Tracker\\InsertSurveySnippet')
$questionsParameters
array('surveyId' => 'getSurveyId')
Currently mostly filled from $defaultTokenParameters
$questionsSnippets : mixed
array('Survey\\SurveyQuestionsSnippet', 'Tracker\\Buttons\\TokenActionButtonRow')
$showSnippets : mixed
array('Generic\\ContentTitleSnippet', 'ModelItemTableSnippetGeneric')
$showTrackParameters : array
array('contentTitle' => 'getTrackTitle', 'multiTracks' => 'isMultiTracks', 'respondentTrack' => 'getRespondentTrack', 'respondentTrackId' => 'getRespondentTrackId', 'displayMenu' => false, 'trackEngine' => 'getTrackEngine', 'trackId' => 'getTrackId')
$showTrackSnippets : mixed
array('Generic\\ContentTitleSnippet', 'Tracker\\SingleSurveyAvailableTracksSnippet', 'ModelItemTableSnippetGeneric', 'Tracker\\Buttons\\TrackActionButtonRow', 'Tracker\\TrackUsageTextDetailsSnippet', 'Tracker\\TrackTokenOverviewSnippet', 'Tracker\\TrackUsageOverviewSnippet')
$tokenReturnActions : array
array('index', 'show', 'show-track')
$viewParameters : array
array('contentTitle' => 'getViewTrackTitle', 'multiTracks' => 'isMultiTracks', 'trackEngine' => 'getTrackEngine', 'trackId' => 'getTrackId')
When the value is a function name of that object, then that functions is executed with the array key as single parameter and the return value is set as the used value
$viewSnippets : mixed
array('Tracker\\TrackUsageTextDetailsSnippet', 'Generic\\ContentTitleSnippet', 'Tracker\\TrackUsageOverviewSnippet', 'Tracker\\Buttons\\TrackActionButtonRow', 'Tracker\\TrackSurveyOverviewSnippet')
$viewSurveyParameters
array('surveyId' => 'getSurveyId')
$viewSurveySnippets : mixed
array('Survey\\SurveyQuestionsSnippet')
$_autofilterExtraParameters : array
array('browse' => true, 'containingId' => 'autofilter_target', 'keyboard' => true, 'onEmpty' => 'getOnEmptyText', 'sortParamAsc' => 'asrt', 'sortParamDesc' => 'dsrt')
$_createExtraParameters : array
array('formTitle' => 'getCreateTitle', 'topicCallable' => 'getTopicCallable')
$_deactivateExtraParameters : array
array('confirmQuestion' => 'getDeactivateQuestion', 'displayTitle' => 'getDeactivateTitle', 'formTitle' => 'getDeactivateTitle', 'topicCallable' => 'getTopicCallable')
$_deleteExtraParameters : array
array('deleteQuestion' => 'getDeleteQuestion', 'displayTitle' => 'getDeleteTitle', 'formTitle' => 'getDeleteTitle', 'topicCallable' => 'getTopicCallable')
$_editExtraParameters : array
array('formTitle' => 'getEditTitle', 'topicCallable' => 'getTopicCallable')
$_importExtraParameters : array
array('formatBoxClass' => 'browser table', 'importer' => 'getImporter', 'tempDirectory' => 'getImportTempDirectory', 'topicCallable' => 'getTopic')
$_reactivateExtraParameters : array
array('confirmQuestion' => 'getReactivateQuestion', 'displayTitle' => 'getReactivateTitle', 'formTitle' => 'getReactivateTitle', 'topicCallable' => 'getTopicCallable')
$_respondent : \Gems_Tracker_Respondent