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
\$stringgetDeactivateQuestion() : \$string
\$stringgetDeactivateTitle() : \$string
\$stringgetDefaultImportTranslator() : string
stringgetDeleteQuestion() : \$string
\$stringgetDeleteTitle() : \$string
\$stringgetEditTitle() : \$string
\$stringgetImportTempDirectory() : string
stringgetImportTranslators() : array
arrayof \MUtil_Model_ModelTranslatorInterface objectsgetImporter() : \MUtil_Model_Importer
\MUtil_Model_ImportergetIndexTitle() : \$string
\$stringgetIndexTitle() : \$string
\$stringgetInstanceId() : mixed
Overrule this function if the last item in the page title should be something other than te value of \MUtil_Model::REQUEST_ID.
mixedgetOnEmptyText() : string
stringgetReactivateQuestion() : \$string
\$stringgetReactivateTitle() : \$string
\$stringgetRespondentFilter() : array
arraygetRespondentId() : integer
integergetRespondentTrack() : \Gems_Tracker_RespondentTrack
\Gems_Tracker_RespondentTrackgetRespondentTrackId() : integer
integergetShowTitle() : \$string
\$stringgetSurveyId() : integer
integergetTitle(string $separator = null) : string
If the title is an array the seperator concatenates the parts.
string
stringgetToken() : \Gems_Tracker_Token
\Gems_Tracker_TokengetTokenId() : string
stringgetTokenTopic(integer $count = 1) : \$string
integer
\$stringgetTokenTopicCallable() : callable
callableGet the getTokenTopic function as a callablegetTopic(integer $count = 1) : \$string
integer
\$stringgetTopic(integer $count = 1) : \$string
integer
\$stringgetTopicCallable() : callable
callablegetTrackEngine() : \Gems_Tracker_Engine_TrackEngineInterface
\Gems_Tracker_Engine_TrackEngineInterfacegetTrackId() : integer
integerimportAction()
indexAction()
init() : void
Called from __construct() as final step of object instantiation.
initHtml(boolean $reset = false) : void
booleanThrows 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.
booleanTrue when the current action is not in $summarizedActions.
stringThe current action.
\MUtil_Model_ModelAbstractfirstAllowedMenuItem(string $action, string $action2 = null) : \Gems_Menu_SubMenuItem
string
string
\Gems_Menu_SubMenuItemgetCreateTrackTitle() : string
stringgetEmailTokenTitle() : string
stringgetExcelData(array $data, \MUtil_Model_ModelAbstract $model) : array
array
\MUtil_Model_ModelAbstract
arraygetExportModel() :
getInsertInTrackTitle() : string
stringgetRespondent() : \Gems_Tracker_Respondent
\Gems_Tracker_RespondentgetTokenTitle() : string
stringgetTrackTitle() : string
stringgetView() : \Zend_View_Interface
\Zend_View_InterfacegetViewTrackTitle() : string
stringisMultiTracks() : boolean
booleanisTemplateOnly() : boolean
booleanloadSnippetLoader()
$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