abstract class AbstractExporter implements Exportable

Exporter 类

Properties

protected int $page
protected string $fileName 文件名称
protected $title
protected $query
protected $filter
protected $table

Methods

__construct(Queryable $model, FilterPlugin $filterWidget, TablePlugin $columnWidget, $title)

扩展新实例

bool|Collection
chunk(Closure $callback, int $count = 100)

数据分块

withScope(string $scope = 'page')

为模型设置查询配置

mixed
export()

No description

Details

at line 44
__construct(Queryable $model, FilterPlugin $filterWidget, TablePlugin $columnWidget, $title)

扩展新实例

Parameters

Queryable $model
FilterPlugin $filterWidget
TablePlugin $columnWidget
$title

at line 59
bool|Collection chunk(Closure $callback, int $count = 100)

数据分块

Parameters

Closure $callback
int $count

Return Value

bool|Collection

Exceptions

Exception

at line 70
AbstractExporter withScope(string $scope = 'page')

为模型设置查询配置

Parameters

string $scope

Return Value

AbstractExporter

at line 99
abstract mixed export()

No description

Return Value

mixed