diff --git a/htdocs/lib/Config/Exceptions.php b/htdocs/lib/Config/Exceptions.php index 057302e..da28aee 100644 --- a/htdocs/lib/Config/Exceptions.php +++ b/htdocs/lib/Config/Exceptions.php @@ -1,11 +1,10 @@ -type.'" is no found.'); } @@ -55,6 +58,10 @@ class UserNoFoundException extends UserException { * @since 3.0.0 */ class UserPasswordErrException extends UserException { + /** + * 沒有找到此帳號 + * @param string $userId 輸入的使用者名稱 + */ public function __construct($userId) { parent::__construct($userId, 'User: "'.$this->type.'" password is wrong.'); } @@ -65,6 +72,10 @@ class UserPasswordErrException extends UserException { * @since 3.0.0 */ class UserNoActivatedException extends UserException { + /** + * 此帳號未啟用 + * @param string $userId 輸入的使用者名稱 + */ public function __construct($userId) { parent::__construct($userId, 'User: "'.$this->type.'" is no activated.'); } @@ -76,6 +87,10 @@ class UserNoActivatedException extends UserException { * @since 3.0.0 */ class UserIdExistException extends UserException { + /** + * 已有重複的使用者名稱 + * @param string $userId 輸入的使用者名稱 + */ public function __construct($userId) { parent::__construct($userId, 'UserId: "'.$this->type.'" is exist.'); } diff --git a/htdocs/lib/User/User.php b/htdocs/lib/User/User.php index 08fa72b..78cb79a 100644 --- a/htdocs/lib/User/User.php +++ b/htdocs/lib/User/User.php @@ -1,8 +1,8 @@ - - * @version 3.0 + * @version 2.0.0 * @package UElearning * @subpackage User */ @@ -19,7 +17,7 @@ class UserControl { /** * 建立使用者 - * @since 3.0.0 + * @since 2.0.0 */ public function create() { // TODO: Fill code in @@ -30,7 +28,7 @@ class UserControl { * * @param string $userName 帳號名稱 * @return bool 已有相同的帳號名稱 - * @since 3.0.0 + * @since 2.0.0 */ public function isExist($userName) { // TODO: Fill code in diff --git a/htdocs/lib/User/UserGroup.php b/htdocs/lib/User/UserGroup.php index e69de29..857b05f 100644 --- a/htdocs/lib/User/UserGroup.php +++ b/htdocs/lib/User/UserGroup.php @@ -0,0 +1,7 @@ +