Commit 66b38e06a3a4e17350efc1145c8dd6d3587db8fb

Authored by Michael Joseph
1 parent 19488eb4

updated phpdocs

- @author
- @package
- @params


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@362 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/authentication/Authenticator.inc
1 <?php 1 <?php
2 2
3 -//require_once("$default->owl_fs_root/lib/administration/UserManager.inc");  
4 -  
5 /** 3 /**
6 * $Id$ 4 * $Id$
7 * 5 *
@@ -10,16 +8,16 @@ @@ -10,16 +8,16 @@
10 * Licensed under the GNU GPL. For full terms see the file COPYING. 8 * Licensed under the GNU GPL. For full terms see the file COPYING.
11 * 9 *
12 * @version $Revision$ 10 * @version $Revision$
13 - * @author <a href="mailto:michael@jamwarehouse.com">Michael Joseph</a>, Jam Warehouse (Pty) Ltd, South Africa  
14 - * @package dmslib 11 + * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa
  12 + * @package lib.authentication
15 */ 13 */
16 class Authenticator { 14 class Authenticator {
17 15
18 /** 16 /**
19 * Verifies the login credentials 17 * Verifies the login credentials
20 * 18 *
21 - * @param userName the user name of the user logging in  
22 - * @param password the user's password 19 + * @param string the user name of the user logging in
  20 + * @param string the user's password
23 * @return array containing userID and authentication status code 21 * @return array containing userID and authentication status code
24 */ 22 */
25 function login($userName, $password) { 23 function login($userName, $password) {
@@ -71,10 +69,8 @@ class Authenticator { @@ -71,10 +69,8 @@ class Authenticator {
71 /** 69 /**
72 * Logs the user out of the application 70 * Logs the user out of the application
73 * 71 *
74 - * @param userID  
75 - * the ID of user logging out  
76 - * @param sessionID  
77 - * the user's sessionID 72 + * @param int the ID of user logging out
  73 + * @param string the user's sessionID
78 */ 74 */
79 function logout($userID, $sessionID) { 75 function logout($userID, $sessionID) {
80 // remove session from db 76 // remove session from db
@@ -84,10 +80,8 @@ class Authenticator { @@ -84,10 +80,8 @@ class Authenticator {
84 /** 80 /**
85 * [Abstract] Checks the user's password 81 * [Abstract] Checks the user's password
86 * 82 *
87 - * @param $userName  
88 - * the name of the user to check  
89 - * @param $password  
90 - * the password to check 83 + * @param string the name of the user to check
  84 + * @param string the password to check
91 * @return boolean true if the password is correct, else false 85 * @return boolean true if the password is correct, else false
92 */ 86 */
93 function checkPassword($userName, $password) { 87 function checkPassword($userName, $password) {
lib/authentication/DBAuthenticator.inc
@@ -8,8 +8,8 @@ require_once(&quot;$default-&gt;owl_fs_root/lib/authentication/Authenticator.inc&quot;); @@ -8,8 +8,8 @@ require_once(&quot;$default-&gt;owl_fs_root/lib/authentication/Authenticator.inc&quot;);
8 * Perform authentication tasks against the database. 8 * Perform authentication tasks against the database.
9 * 9 *
10 * @version $Revision$ 10 * @version $Revision$
11 - * @author <a href="mailto:michael@jamwarehouse.com">Michael Joseph</a>, Jam Warehouse (Pty) Ltd, South Africa  
12 - * @package dmslib 11 + * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa
  12 + * @package lib.authentication
13 */ 13 */
14 14
15 class DBAuthenticator extends Authenticator { 15 class DBAuthenticator extends Authenticator {
@@ -17,10 +17,8 @@ class DBAuthenticator extends Authenticator { @@ -17,10 +17,8 @@ class DBAuthenticator extends Authenticator {
17 /** 17 /**
18 * Checks the user's password against the database 18 * Checks the user's password against the database
19 * 19 *
20 - * @param $userName  
21 - * the name of the user to check  
22 - * @param $password  
23 - * the password to check 20 + * @param string the name of the user to check
  21 + * @param string the password to check
24 * @return boolean true if the password is correct, else false 22 * @return boolean true if the password is correct, else false
25 */ 23 */
26 function checkPassword($userName, $password) { 24 function checkPassword($userName, $password) {