From a15274d97f92dc54b7e66d1f07cd04b9248162e8 Mon Sep 17 00:00:00 2001 From: Yuan Chiu Date: Sat, 18 Oct 2014 03:19:07 +0800 Subject: [PATCH] fix DBTarget doc --- htdocs/lib/Database/DBTarget.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/htdocs/lib/Database/DBTarget.php b/htdocs/lib/Database/DBTarget.php index a446f68..1069eea 100644 --- a/htdocs/lib/Database/DBTarget.php +++ b/htdocs/lib/Database/DBTarget.php @@ -25,7 +25,12 @@ require_once UELEARNING_LIB_ROOT.'/Database/Exception.php'; */ class DBTarget extends Database { - private function queryTargetByWhere($where) { + /** + * 內部使用的查詢動作 + * @param string $where 查詢語法 + * @return array 查詢結果陣列 + */ + public function queryTargetByWhere($where) { $sqlString = "SELECT `TID`, Target.`AID`, Area.`HID`, ". "`TNum`, `TName`, `TMapID`, `TLearnTime`, `PLj`, `Mj`, `S`, `Fi` ". @@ -177,6 +182,11 @@ class DBTarget extends Database { // ======================================================================== + /** + * 內部使用的查詢動作 + * @param string $where 查詢語法 + * @return array 查詢結果陣列 + */ private function queryAreaByWhere($where) { $sqlString = "SELECT * FROM `".$this->table('Area')."`". @@ -313,6 +323,11 @@ class DBTarget extends Database { // ======================================================================== + /** + * 內部使用的查詢動作 + * @param string $where 查詢語法 + * @return array 查詢結果陣列 + */ private function queryHallByWhere($where) { $sqlString = "SELECT * FROM `".$this->table('Hall')."`".