|
|
|
|
@ -282,7 +282,6 @@ class WhispeakAuthPlugin extends Plugin implements HookPluginInterface |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @param User $user |
|
|
|
|
* @param string $uid |
|
|
|
|
* |
|
|
|
|
* @throws \Doctrine\ORM\OptimisticLockException |
|
|
|
|
@ -454,8 +453,7 @@ class WhispeakAuthPlugin extends Plugin implements HookPluginInterface |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @param int $questionId |
|
|
|
|
* @param Exercise $exercise |
|
|
|
|
* @param int $questionId |
|
|
|
|
* |
|
|
|
|
* @throws Exception |
|
|
|
|
* |
|
|
|
|
@ -679,6 +677,16 @@ class WhispeakAuthPlugin extends Plugin implements HookPluginInterface |
|
|
|
|
return $totalCount; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @return string |
|
|
|
|
*/ |
|
|
|
|
public function getApiUrl() |
|
|
|
|
{ |
|
|
|
|
$url = $this->get(self::SETTING_API_URL); |
|
|
|
|
|
|
|
|
|
return trim($url, " \t\n\r \v/").'/'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Install extra fields for user, learning path and quiz question. |
|
|
|
|
*/ |
|
|
|
|
@ -833,14 +841,4 @@ class WhispeakAuthPlugin extends Plugin implements HookPluginInterface |
|
|
|
|
$sql = "DROP TABLE IF EXISTS $table"; |
|
|
|
|
Database::query($sql); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @return string |
|
|
|
|
*/ |
|
|
|
|
public function getApiUrl() |
|
|
|
|
{ |
|
|
|
|
$url = $this->get(self::SETTING_API_URL); |
|
|
|
|
|
|
|
|
|
return trim($url, " \t\n\r \v/").'/'; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|