public function invoke(array $data)
	{
		$columns = $this->getColumns() ?: $this->grid->getColumns();

		$csv_data_model = new CsvDataModel($data, $columns, $this->grid->getTranslator());

		if ($this->grid->getPresenter() instanceof Nette\Application\UI\Presenter) {
			$this->grid->getPresenter()->sendResponse(new CSVResponse(
				$csv_data_model->getSimpleData(),
				$this->name,
				$this->output_encoding,
				$this->delimiter,
				$this->include_bom
			));

			exit(0);
		}
	}
public function invoke(array $data)
	{
		$columns = $this->getColumns() ?: $this->grid->getColumns();

		$csv_data_model = new CsvDataModel($data, $columns, $this->grid->getTranslator());

		if ($this->grid->getPresenter() instanceof Nette\Application\UI\Presenter) {
			$this->grid->getPresenter()->sendResponse(new CSVResponse(
				$csv_data_model->getSimpleData(),
				$this->name,
				$this->output_encoding,
				$this->delimiter,
				$this->include_bom
			));

			exit(0);
		}
	}
public function invoke ( array $ data ) { $ columns = $ this -> getColumns ( ) ? : $ this -> grid -> getColumns ( ) ; $ csv_data_model = new CsvDataModel ( $ data , $ columns , $ this -> grid -> getTranslator ( ) ) ; if ( $ this -> grid -> getPresenter ( ) instanceof Nette \ Application \ UI \ Presenter ) { $ this -> grid -> getPresenter ( ) -> sendResponse ( new CSVResponse ( $ csv_data_model -> getSimpleData ( ) , $ this -> name , $ this -> output_encoding , $ this -> delimiter , $ this -> include_bom ) ) ; exit ( 0 ) ; } }
Call export callback
@param  array    $data
@return void
Call export callback