WiseLoop PHP REST Services 3.3.1
RESTful web service API framework for PHP
wlAuthHandlerPdoMySql Class Reference
Inheritance diagram for wlAuthHandlerPdoMySql:

Public Member Functions

 __construct ($dbHost, $dbName, $dbUserName, $dbPassword, $usersTable= 'users', $userNameField= 'userName', $passwordField= 'password', $isPasswordMd5=true)

Detailed Description

WiseLoop AuthHandlerPdoMySql class definition
This class is designed to provide security handlers that are authorizing users stored in a MySQL database.
The connection to the database is made through PDO extension, so make sure you have it enabled.

Author:
WiseLoop
See also:
wlAuthHandlerPdo

See also: Authentication & Authorization


Constructor & Destructor Documentation

__construct ( dbHost,
dbName,
dbUserName,
dbPassword,
usersTable = 'users',
userNameField = 'userName',
passwordField = 'password',
isPasswordMd5 = true 
)
Parameters:
string$dbHostdatabase host (ex. localhost)
string$dbNamedatabase name
string$dbUserNamedatabase user name
string$dbPassworddatabase password
string$usersTablethe table name that stores the users
string$userNameFieldthe field name that corresponds to the userName used in authentication mechanism
string$passwordFieldthe field name that corresponds to the user password
bool$isPasswordMd5specifies if the password id hashed using md5
 All Data Structures Functions Variables