AbstractExporter
abstract class AbstractExporter implements ExporterInterface
Properties
protected Grid | $grid | ||
protected int | $page |
Methods
string
getTable()
Get table of grid.
array|Collection|mixed
getData(bool $toArray = true)
Get data with export query.
bool
chunk(callable $callback, int $count = 100)
No description
Collection
getCollection()
No description
Builder|Model
getQuery()
No description
$this
withScope(string $scope)
Export data with scope.
mixed
export()
No description
Details
at line 27
__construct(Grid $grid = null)
Create a new exporter instance.
at line 41
$this
setGrid(Grid $grid)
Set grid for exporter.
at line 53
string
getTable()
Get table of grid.
at line 65
array|Collection|mixed
getData(bool $toArray = true)
Get data with export query.
at line 76
bool
chunk(callable $callback, int $count = 100)
No description
at line 84
Collection
getCollection()
No description
at line 92
Builder|Model
getQuery()
No description
at line 121
$this
withScope(string $scope)
Export data with scope.
at line 145
abstract mixed
export()
No description