From 5d55c709dddad44984446efa49ceb7084fc16b3f Mon Sep 17 00:00:00 2001 From: Frank Karlitschek Date: Sun, 6 May 2012 22:02:16 +0200 Subject: some more documentation cleanups. much more is needed. And greeting from the Atlanta airport. ;-) --- lib/public/user.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'lib/public/user.php') diff --git a/lib/public/user.php b/lib/public/user.php index c9f01d4a597..53ff8d25fc5 100644 --- a/lib/public/user.php +++ b/lib/public/user.php @@ -63,15 +63,17 @@ class User { return \OC_USER::isLoggedIn(); } + /** * @brief check if a user exists * @param string $uid the username * @return boolean */ - public static function userExists($uid){ - return \OC_USER::userExists($uid); + public static function userExists( $uid ){ + return \OC_USER::userExists( $uid ); } + /** * @brief Loggs the user out including all the session data * @returns true @@ -82,6 +84,7 @@ class User { return \OC_USER::logout(); } + /** * @brief Check if the password is correct * @param $uid The username @@ -91,9 +94,10 @@ class User { * Check if the password is correct without logging in the user */ public static function checkPassword( $uid, $password ){ - return \OC_USER::checkPassword($uid, $password); + return \OC_USER::checkPassword( $uid, $password ); } + /** * Check if the user is a admin, redirects to home if not */ @@ -101,6 +105,7 @@ class User { \OC_Util::checkAdminUser(); } + /** * Check if the user is logged in, redirects to home if not. With * redirect URL parameter to the request URI. @@ -110,6 +115,7 @@ class User { } + } -- cgit v1.2.3