PHPDevShell 3.1.3-Stable
PHP OOP RAD Development Framework
StandardLogin Class Reference
Inheritance diagram for StandardLogin:
PHPDS_login PHPDS_dependant iBaseLogin

Public Member Functions

 loginForm ($return=false)
 processLogin ($username, $password)
 lookupUser ($username, $password= '')
 lookupUsername ($username)

Data Fields

 $loginPageId = '3682403894'
 $registrationPageId = '3727066128'
 $lostPasswordPageId = '1901799184'

Detailed Description

Contains methods to handle standard logins.

Author:
Jason Schoeman

Member Function Documentation

loginForm ( return = false)

Loads the username & password html template form.

Parameters:
boolean$return

Reimplemented from PHPDS_login.

lookupUser ( username,
password = '' 
)

Search the database for the given credentials

If don't give the password (not the same an empty string), only the username will be checked

Parameters:
string$username
string$password
Returns:
array or false the user record
Date:
20100204 (v1.0) (greg) created from Jason's original fct
20100608 (v1.0.1) (greg) moved to query system
20110804 (v1.0.2) (greg) handle null password as name-only lookup
Version:
1.0.2
Author:
jason, greg

Reimplemented from PHPDS_login.

lookupUsername ( username)

Check if the username exists.

Parameters:
string$username
Version:
1.0.0
Author:
jason
processLogin ( username,
password 
)

Checks to see if user and password is correct and allowed. Then creates session data accordingly.

Parameters:
string$username
string$password
Date:
20100204 greg: split into pieces
Version:
1.1
Author:
jason, greg

Reimplemented from PHPDS_login.


Field Documentation

$loginPageId = '3682403894'
$lostPasswordPageId = '1901799184'
$registrationPageId = '3727066128'

The documentation for this class was generated from the following file:
 All Data Structures Files Functions Variables Enumerations