*/
public $textSeparator = '"';
+ /**
+ * indicates whether output was generated (i.e. executeAction was called)
+ * @var boolean
+ */
+ private $executed = false;
+
/**
* @inheritDoc
*/
throw new \InvalidArgumentException("Object list is no instance of '".UserList::class."', instance of '".get_class($objectList)."' given.");
}
+ $this->executed = true;
+
// send content type
header('Content-Type: text/'.$this->fileType.'; charset=UTF-8');
header('Content-Disposition: attachment; filename="export.'.$this->fileType.'"');
* @inheritDoc
*/
public function reset() {
+ if (!$this->executed) return;
+ $this->executed = false;
exit;
}
}