/**
  * Add model rows to file. Can be batched
  * @param string $exportModelSourceName     name of the current export model source
  * @param array $filter                     Model filters for export             
  * @param array $data                       Data submitted by export form
  * @param string $tempFilename              The temporary filename while the file is being written
  */
 public function addRows($exportModelSourceName, $filter, $data, $tempFilename)
 {
     $name = $this->getName();
     if (!(isset($data[$name]) && isset($data[$name]['format']) && in_array('formatAnswer', $data[$name]['format']))) {
         $this->modelFilterAttributes = array('formatFunction', 'dateFormat', 'storageFormat', 'itemDisplay');
     }
     parent::addRows($exportModelSourceName, $filter, $data, $tempFilename);
 }
 /**
  * Add an export command with specific details. Can be batched.
  * Adds spss file to the export
  * @param string $exportModelSourceName     name of the current export model source
  * @param array $filter                     Model filters for export             
  * @param array $data                       Data submitted by export form
  */
 public function addExport($exportModelName, $filter, $data)
 {
     parent::addExport($exportModelName, $filter, $data);
     if ($model = $this->getModel()) {
         $this->addSpssFile();
         $this->batch->setSessionVariable('files', $this->files);
     }
 }