abstract class AbstractExporter implements ExporterInterface

Properties

protected Grid $grid
protected int $page

Methods

__construct(Grid $grid = null)

Create a new exporter instance.

$this
setGrid(Grid $grid)

Set grid for exporter.

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.

Parameters

Grid $grid

at line 41
$this setGrid(Grid $grid)

Set grid for exporter.

Parameters

Grid $grid

Return Value

$this

at line 53
string getTable()

Get table of grid.

Return Value

string

at line 65
array|Collection|mixed getData(bool $toArray = true)

Get data with export query.

Parameters

bool $toArray

Return Value

array|Collection|mixed

at line 76
bool chunk(callable $callback, int $count = 100)

No description

Parameters

callable $callback
int $count

Return Value

bool

at line 84
Collection getCollection()

No description

Return Value

Collection

at line 92
Builder|Model getQuery()

No description

Return Value

Builder|Model

at line 121
$this withScope(string $scope)

Export data with scope.

Parameters

string $scope

Return Value

$this

at line 145
abstract mixed export()

No description

Return Value

mixed