The export interface
Exporting survey-data can be done for various sorts of output formats, this interface describes the methods needed to implement an output format
package | Gems |
---|---|
subpackage | Export |
copyright | Copyright (c) 2011 Erasmus MC |
license | New BSD License |
since | Class available since version 1.5 |
getDefaults() : array
array
getFormElements(\type $form, \type $data) : array
\type
\type
array
of \Zend_Form_ElementgetName() : string
It will be used for handling this export's specific options
string
handleExport(array $data, \Gems_Tracker_Survey $survey, array $answers, \MUtil_Model_ModelAbstract $answerModel, string $language)
The method takes care of rendering the right script by using $this->export->controller to access the controller object.
array
The formdata
\Gems_Tracker_Survey
The survey object we are exporting
array
The array of answers
\MUtil_Model_ModelAbstract
The modified answermodel that includes info about extra attributes
string
The language used / to use for the export