From dc37f8080f27d764ce53b29678c53f978ae645b9 Mon Sep 17 00:00:00 2001 From: yunwuxin <448901948@qq.com> Date: Tue, 21 Jun 2016 16:39:53 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Model.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/library/think/Model.php b/library/think/Model.php index 3863c260..04268199 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -23,7 +23,17 @@ use think\paginator\Collection as PaginatorCollection; /** * Class Model * @package think - * @method PaginatorCollection paginate(integer $listRows = 15, boolean $simple = false, array $config = []) static 分页查询 + * @method PaginatorCollection paginate(integer $listRows = 15, boolean $simple = false, array $config = []) 分页查询 + * @method mixed value($field, $default = null) 得到某个字段的值 + * @method array column($field, $key = '') 得到某个列的数组 + * @method integer count($field = '*') COUNT查询 + * @method integer sum($field = '*') SUM查询 + * @method integer min($field = '*') MIN查询 + * @method integer max($field = '*') MAX查询 + * @method integer avg($field = '*') AVG查询 + * @method setField($field, $value = '') + * @method Query where($field, $op = null, $condition = null) 指定AND查询条件 + * */ abstract class Model implements \JsonSerializable, \ArrayAccess { From f906b0fc77ef630149b1238ca526210139e7afa2 Mon Sep 17 00:00:00 2001 From: yunwuxin <448901948@qq.com> Date: Tue, 21 Jun 2016 16:47:03 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Model.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/library/think/Model.php b/library/think/Model.php index 04268199..819f75e9 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -23,16 +23,16 @@ use think\paginator\Collection as PaginatorCollection; /** * Class Model * @package think - * @method PaginatorCollection paginate(integer $listRows = 15, boolean $simple = false, array $config = []) 分页查询 - * @method mixed value($field, $default = null) 得到某个字段的值 - * @method array column($field, $key = '') 得到某个列的数组 - * @method integer count($field = '*') COUNT查询 - * @method integer sum($field = '*') SUM查询 - * @method integer min($field = '*') MIN查询 - * @method integer max($field = '*') MAX查询 - * @method integer avg($field = '*') AVG查询 - * @method setField($field, $value = '') - * @method Query where($field, $op = null, $condition = null) 指定AND查询条件 + * @method static PaginatorCollection paginate(integer $listRows = 15, boolean $simple = false, array $config = []) 分页查询 + * @method static mixed value($field, $default = null) 得到某个字段的值 + * @method static array column($field, $key = '') 得到某个列的数组 + * @method static integer count($field = '*') COUNT查询 + * @method static integer sum($field = '*') SUM查询 + * @method static integer min($field = '*') MIN查询 + * @method static integer max($field = '*') MAX查询 + * @method static integer avg($field = '*') AVG查询 + * @method static setField($field, $value = '') + * @method static Query where($field, $op = null, $condition = null) 指定AND查询条件 * */ abstract class Model implements \JsonSerializable, \ArrayAccess