class CsvExporter extends AbstractExporter

Properties

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

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

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

扩展新实例

Parameters

Queryable $model
FilterPlugin $filterWidget
TablePlugin $columnWidget
$title

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

数据分块

Parameters

Closure $callback
int $count

Return Value

bool|Collection

Exceptions

Exception

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

为模型设置查询配置

Parameters

string $scope

Return Value

AbstractExporter

at line 17
mixed export()

No description

Return Value

mixed