From d3001ecc28b4b279c3b0bda2adf6cc5afb198727 Mon Sep 17 00:00:00 2001 From: Yuan Chiu Date: Mon, 4 Aug 2014 17:52:50 -0700 Subject: [PATCH] Fix All Comment --- htdocs/lib/Config/Exceptions.php | 13 ++++++------ htdocs/lib/Database/DBAdmin.php | 9 ++++----- htdocs/lib/Database/DBUser.php | 9 ++++----- htdocs/lib/Database/Database.php | 8 ++++---- htdocs/lib/Database/Exceptions.php | 17 ++++++++-------- htdocs/lib/Database/MySQLDB.php | 5 +++-- htdocs/lib/User/ClassGroup.php | 7 +++++++ htdocs/lib/User/ClassGroupAdmin.php | 7 +++++++ htdocs/lib/User/Exceptions.php | 31 +++++++++++++++++++++-------- htdocs/lib/User/User.php | 10 +++++----- htdocs/lib/User/UserControl.php | 16 +++++++-------- htdocs/lib/User/UserGroup.php | 7 +++++++ htdocs/lib/User/UserGroupAdmin.php | 7 +++++++ htdocs/lib/User/UserSession.php | 4 ++-- 14 files changed, 95 insertions(+), 55 deletions(-) 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 @@ +