From 21fced658a8e659e4a676b70baf5d007a42b4784 Mon Sep 17 00:00:00 2001 From: chunice Date: Thu, 28 Jul 2016 23:24:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84Db::connect()=20=E7=9A=84=20p?= =?UTF-8?q?hpdoc=20=E6=B3=A8=E9=87=8A=EF=BC=8C=E5=A2=9E=E5=BC=BA=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Db.php | 1 + library/think/db/Connection.php | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/library/think/Db.php b/library/think/Db.php index e46bc80a..f3b0e274 100644 --- a/library/think/Db.php +++ b/library/think/Db.php @@ -14,6 +14,7 @@ namespace think; use think\App; use think\Collection; use think\db\Query; +use think\paginator\Collection as PaginatorCollection; /** * Class Db diff --git a/library/think/db/Connection.php b/library/think/db/Connection.php index 2e716b29..38887b09 100644 --- a/library/think/db/Connection.php +++ b/library/think/db/Connection.php @@ -23,6 +23,13 @@ use think\Exception; use think\exception\PDOException; use think\Log; +/** + * Class Connection + * @package think + * @method Query table(string $table) 指定数据表(含前缀) + * @method Query name(string $name) 指定数据表(不含前缀) + * + */ abstract class Connection {