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 28
__construct(Grid $grid = null)
Create a new exporter instance.
at line 42
$this
setGrid(Grid $grid)
Set grid for exporter.
at line 54
string
getTable()
Get table of grid.
at line 66
array|Collection|mixed
getData(bool $toArray = true)
Get data with export query.
at line 77
bool
chunk(callable $callback, int $count = 100)
No description
at line 85
Collection
getCollection()
No description
at line 93
Builder|Model
getQuery()
No description
at line 122
$this
withScope(string $scope)
Export data with scope.
at line 148
abstract mixed
export()
No description