/** * 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); } }