Display only those questions that have an answer
package | Gems |
---|---|
subpackage | Events |
copyright | Copyright (c) 2012 Erasmus MC |
license | New BSD License |
since | Class available since version 1.5.6 |
inherited_from | \Gems_Event_SurveyAnswerFilterAbstract |
array_filter(\type $inputArray, \type $model) : boolean
Empty is NULL or empty string, values of 0 are NOT empty unless they are a checkbox
\type
\type
boolean
filterAnswers(\MUtil_Model_Bridge_TableBridge $bridge, \MUtil_Model_ModelAbstract $model, array $currentNames) : array
getAnswerDisplaySnippets(\Gems_Tracker_Token $token) : array
inherited_from | \Gems_Event_SurveyDisplayEventInterface::getAnswerDisplaySnippets() |
---|
\Gems_Tracker_Token
The token to get the snippets for
array
of Snippet names or nothinggetEventName() : string
string
NamegetHeaders(\MUtil_Model_ModelAbstract $model, array $currentNames) : array
\MUtil_Model_ModelAbstract
array
The current names in use (allows chaining)
array
Of the names of labels that should be shownrestoreHeaderPositions(\MUtil_Model_ModelAbstract $model, array $currentNames) : array
When sub-questions with the same parent are shown continuous the parent is shown once before them. When the sub-questions are displayed in seperate groups the parent is shown once at their start.
Stand alone headers without any corresponding value are removed. When they do have a value of their own they are still shown, but their position may change according to their sub-questions position. (NOTE: As in LimeSurvey their are no question headers with values we leave it at this for the moment.)
\MUtil_Model_ModelAbstract
array
The current names in use (allows chaining)
array
Of the names of labels that should be shown$locale : \Zend_Locale
$token : \Gems_Tracker_Token