DatatablesExportTrait
Table of Contents
Properties
- $container : ContainerInterface
- $header : array<string|int, mixed>
Methods
- export() : StreamedResponse
- Exporting sales
- exportXls() : mixed
- Exporting as Xls
- exportCsv() : StreamedResponse
- Exporting as csv
Properties
$container
protected
ContainerInterface
$container
$header
protected
array<string|int, mixed>
$header
= []
Methods
export()
Exporting sales
public
export(mixed $title, mixed $data, mixed $columns, mixed $format[, array<string|int, mixed> $customHeader = [] ]) : StreamedResponse
Parameters
- $title : mixed
- $data : mixed
- $columns : mixed
- $format : mixed
- $customHeader : array<string|int, mixed> = []
Return values
StreamedResponseexportXls()
Exporting as Xls
public
exportXls(mixed $data, mixed $columns, mixed $title[, bool $toFile = false ]) : mixed
Parameters
- $data : mixed
- $columns : mixed
- $title : mixed
- $toFile : bool = false
exportCsv()
Exporting as csv
private
exportCsv(mixed $data, mixed $columns, mixed $title) : StreamedResponse
Parameters
- $data : mixed
- $columns : mixed
- $title : mixed