model
in package
Table of Contents
Properties
Methods
- after_del() : mixed
- 删除后
- after_find() : mixed
- 查寻后
- after_insert() : mixed
- 写入数据后
- after_update() : mixed
- 更新数据后
- avg() : mixed
- AVG
- before_del() : mixed
- 删除前
- before_find() : mixed
- 查寻前
- before_insert() : mixed
- 写入数据前
- before_update() : mixed
- 更新数据前
- count() : mixed
- COUNT
- del() : mixed
- DEL
- find() : mixed
- 查寻记录
- insert() : mixed
- 写入数据
- max() : mixed
- MAX
- min() : mixed
- MIN
- pager() : mixed
- 分页
- sum() : mixed
- SUM
- update() : mixed
- 更新数据
- _where() : mixed
Properties
$primary
protected
mixed
$primary
= 'id'
$table
protected
mixed
$table
= ''
Methods
after_del()
删除后
public
after_del(mixed $where) : mixed
Parameters
- $where : mixed
after_find()
查寻后
public
after_find(mixed &$data) : mixed
Parameters
- $data : mixed
after_insert()
写入数据后
public
after_insert(mixed $id) : mixed
Parameters
- $id : mixed
after_update()
更新数据后
public
after_update(mixed $row_count, mixed $data, mixed $where) : mixed
Parameters
- $row_count : mixed
- $data : mixed
- $where : mixed
avg()
AVG
public
avg(mixed $filed[, mixed $where = '' ]) : mixed
Parameters
- $filed : mixed
- $where : mixed = ''
before_del()
删除前
public
before_del(mixed &$where) : mixed
Parameters
- $where : mixed
before_find()
查寻前
public
before_find(mixed &$where) : mixed
Parameters
- $where : mixed
before_insert()
写入数据前
public
before_insert(mixed &$data) : mixed
Parameters
- $data : mixed
before_update()
更新数据前
public
before_update(mixed &$data, mixed $where) : mixed
Parameters
- $data : mixed
- $where : mixed
count()
COUNT
public
count([mixed $where = '' ]) : mixed
Parameters
- $where : mixed = ''
del()
DEL
public
del([mixed $where = '' ]) : mixed
Parameters
- $where : mixed = ''
find()
查寻记录
public
find([mixed $where = '' ][, mixed $limit = '' ]) : mixed
Parameters
- $where : mixed = ''
- $limit : mixed = ''
insert()
写入数据
public
insert(mixed $data) : mixed
Parameters
- $data : mixed
max()
MAX
public
max(mixed $filed[, mixed $where = '' ]) : mixed
Parameters
- $filed : mixed
- $where : mixed = ''
min()
MIN
public
min(mixed $filed[, mixed $where = '' ]) : mixed
Parameters
- $filed : mixed
- $where : mixed = ''
pager()
分页
public
pager(mixed $join[, mixed $columns = null ][, mixed $where = null ]) : mixed
Parameters
- $join : mixed
- $columns : mixed = null
- $where : mixed = null
sum()
SUM
public
sum(mixed $filed[, mixed $where = '' ]) : mixed
Parameters
- $filed : mixed
- $where : mixed = ''
update()
更新数据
public
update(mixed $data[, mixed $where = '' ]) : mixed
Parameters
- $data : mixed
- $where : mixed = ''
_where()
protected
_where(mixed &$where) : mixed
Parameters
- $where : mixed