From 9fafd6e4c9461669363b20db15f0a722d946eebd Mon Sep 17 00:00:00 2001 From: Yuan Chiu Date: Mon, 26 Jan 2015 16:23:23 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20Study=20Namespace=E8=A3=A1=E7=9A=84?= =?UTF-8?q?=E9=A1=9E=E5=88=A5=E5=AF=AB=E6=B3=95=E5=BC=8A=E7=97=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/lib/Study/StudyManager.php | 4 ++-- htdocs/lib/Target/Target.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/lib/Study/StudyManager.php b/htdocs/lib/Study/StudyManager.php index dd12778..c845c53 100644 --- a/htdocs/lib/Study/StudyManager.php +++ b/htdocs/lib/Study/StudyManager.php @@ -26,8 +26,8 @@ class StudyManager { /** * 取得目前已進入的學習點 - * @param string $activity_id 活動編號 - * @return string 標的編號,若無則null + * @param int $activity_id 活動編號 + * @return int 標的編號,若無則null */ public function getCurrentInTargetId($activity_id) { diff --git a/htdocs/lib/Target/Target.php b/htdocs/lib/Target/Target.php index 7c72a88..37994a1 100644 --- a/htdocs/lib/Target/Target.php +++ b/htdocs/lib/Target/Target.php @@ -267,7 +267,7 @@ class Target { * @param int $number 學習標的目前人數 * @since 2.0.0 */ - function setMj($number){ + public function setMj($number){ $this->setUpdate('Mj', $number); } @@ -280,7 +280,7 @@ class Target { * @return int 學習標的目前人數 * @since 2.0.0 */ - function addMj($number){ + public unction addMj($number){ $setedNum = $this->queryResultArray['Mj']+$number; if($setedNum < 0) $setedNum = 0; $this->setUpdate('Mj', $setedNum);