class SmsQuery extends QueryCustom

Constants

protected NAME_PAGESIZE

protected OBJECT_MASK

Properties

int $pagesize 分页数量 from  Query
int $usePaginate 是否使用分页 from  Query
protected int $total 分页总长度 from  Query
protected Closure $collectionCallback

对查询出来的数据集合进行回调, 参数是查询的所有数据

from  Query
protected Scope|null $scope 全局范围 from  QueryCustom
protected FilterWidget $filter 过滤器 from  QueryCustom
protected TableWidget $table 表格 from  QueryCustom

Methods

mixed
usePaginate(bool $paginate = false)

使用分页

int
total()

查询所有数据

collection(Closure $callback = null)

对于返回的列表数据进行回调调用

Collection
get()

No description

mixed
chunk(Closure $closure, int $amount = 100)

用于批量查询

prepare(FilterWidget $filter, TableWidget $table)

用户筛选查询

bool
edit($id, string $field, $value)

编辑条目

usePrimaryKey(array $ids = [])

导出 | 使用主键

mixed
getPrimaryKey()

获取主键

__construct()

No description

Details

in QueryCustom at line 101
mixed usePaginate(bool $paginate = false)

使用分页

Parameters

bool $paginate

Return Value

mixed

in QueryCustom at line 65
int total()

查询所有数据

Return Value

int

in QueryCustom at line 45
Query collection(Closure $callback = null)

对于返回的列表数据进行回调调用

Parameters

Closure $callback

Return Value

Query

at line 19
Collection get()

No description

Return Value

Collection

in QueryCustom at line 56
mixed chunk(Closure $closure, int $amount = 100)

用于批量查询

Parameters

Closure $closure
int $amount

Return Value

mixed

in QueryCustom at line 76
Query prepare(FilterWidget $filter, TableWidget $table)

用户筛选查询

Parameters

FilterWidget $filter
TableWidget $table

Return Value

Query

in QueryCustom at line 91
bool edit($id, string $field, $value)

编辑条目

Parameters

$id
string $field
$value

Return Value

bool

in QueryCustom at line 111
Query usePrimaryKey(array $ids = [])

导出 | 使用主键

Parameters

array $ids

Return Value

Query

in QueryCustom at line 120
mixed getPrimaryKey()

获取主键

Return Value

mixed

at line 14
__construct()

No description