SmsQuery
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
Collection
get()
No description
__construct()
No description
Details
in
QueryCustom at line 101
mixed
usePaginate(bool $paginate = false)
使用分页
in
QueryCustom at line 65
int
total()
查询所有数据
in
QueryCustom at line 45
Query
collection(Closure $callback = null)
对于返回的列表数据进行回调调用
at line 19
Collection
get()
No description
in
QueryCustom at line 56
mixed
chunk(Closure $closure, int $amount = 100)
用于批量查询
in
QueryCustom at line 76
Query
prepare(FilterWidget $filter, TableWidget $table)
用户筛选查询
in
QueryCustom at line 91
bool
edit($id, string $field, $value)
编辑条目
in
QueryCustom at line 111
Query
usePrimaryKey(array $ids = [])
导出 | 使用主键
in
QueryCustom at line 120
mixed
getPrimaryKey()
获取主键
at line 14
__construct()
No description