Fix Study Namespace裡的類別寫法弊病
This commit is contained in:
parent
7c4bf21d93
commit
9fafd6e4c9
@ -26,8 +26,8 @@ class StudyManager {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 取得目前已進入的學習點
|
* 取得目前已進入的學習點
|
||||||
* @param string $activity_id 活動編號
|
* @param int $activity_id 活動編號
|
||||||
* @return string 標的編號,若無則null
|
* @return int 標的編號,若無則null
|
||||||
*/
|
*/
|
||||||
public function getCurrentInTargetId($activity_id) {
|
public function getCurrentInTargetId($activity_id) {
|
||||||
|
|
||||||
|
@ -267,7 +267,7 @@ class Target {
|
|||||||
* @param int $number 學習標的目前人數
|
* @param int $number 學習標的目前人數
|
||||||
* @since 2.0.0
|
* @since 2.0.0
|
||||||
*/
|
*/
|
||||||
function setMj($number){
|
public function setMj($number){
|
||||||
$this->setUpdate('Mj', $number);
|
$this->setUpdate('Mj', $number);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -280,7 +280,7 @@ class Target {
|
|||||||
* @return int 學習標的目前人數
|
* @return int 學習標的目前人數
|
||||||
* @since 2.0.0
|
* @since 2.0.0
|
||||||
*/
|
*/
|
||||||
function addMj($number){
|
public unction addMj($number){
|
||||||
$setedNum = $this->queryResultArray['Mj']+$number;
|
$setedNum = $this->queryResultArray['Mj']+$number;
|
||||||
if($setedNum < 0) $setedNum = 0;
|
if($setedNum < 0) $setedNum = 0;
|
||||||
$this->setUpdate('Mj', $setedNum);
|
$this->setUpdate('Mj', $setedNum);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user