QueryCustom
class QueryCustom extends Query
Constants
protected NAME_PAGESIZE |
|
protected NAME_PAGE |
|
protected OBJECT_MASK |
|
Properties
int | $pagesize | 分页数量 | from Query |
int | $usePaginate | 是否使用分页 | from Query |
protected int | $total | 分页总长度 | from Query |
protected Closure | $collectionCallback | 对查询出来的数据集合进行回调, 参数是查询的所有数据 |
from Query |
protected TablePlugin | $table | 表格 | |
protected int | $page | 当前的页码 | |
protected int | $pageOffset | 页码偏移量 | |
protected array | $params | 查询条件, 包含Scope |
Methods
Collection
get()
实现 Get 方法来获取数据
bool
edit($id, string $field, $value)
编辑条目
usePrimaryKey(array $ids = [])
导出 | 使用主键
mixed
getPrimaryKey()
获取主键
Details
in
Query at line 60
int
total()
获取当前模型的总数
at line 41
Collection
get()
实现 Get 方法来获取数据
at line 52
mixed
chunk(Closure $closure, int $amount = 100)
用于批量查询
at line 63
Queryable
prepare(FilterPlugin $filter, TablePlugin $table)
用户筛选查询
at line 80
bool
edit($id, string $field, $value)
编辑条目
at line 90
Queryable
usePrimaryKey(array $ids = [])
导出 | 使用主键
at line 99
mixed
getPrimaryKey()
获取主键