Public Member Functions | |
| Auth_Container_ADOdb ($dsn) | |
| _connect ($dsn) | |
| _prepare () | |
| query ($query) | |
| _setDefaults () | |
| _parseOptions ($array) | |
| fetchData ($username, $password) | |
| listUsers () | |
| addUser ($username, $password, $additional="") | |
| removeUser ($username) | |
Public Attributes | |
| $options = array() | |
| $db = null | |
| $dsn = '' | |
| $activeUser = '' | |
Definition at line 40 of file ADOdb.php.
| Auth_Container_ADOdb::Auth_Container_ADOdb | ( | $ | dsn | ) |
| Auth_Container_ADOdb::_connect | ( | $ | dsn | ) |
| Auth_Container_ADOdb::_prepare | ( | ) |
| Auth_Container_ADOdb::query | ( | $ | query | ) |
Prepare query to the database
This function checks if we have already opened a connection to the database. If that's not the case, a new connection is opened. After that the query is passed to the database.
public
| string | Query string |
| Auth_Container_ADOdb::_setDefaults | ( | ) |
| Auth_Container_ADOdb::_parseOptions | ( | $ | array | ) |
| Auth_Container_ADOdb::fetchData | ( | $ | username, | |
| $ | password | |||
| ) |
Get user information from database
This function uses the given username to fetch the corresponding login data from the database table. If an account that matches the passed username and password is found, the function returns true. Otherwise it returns false.
| string | Username | |
| string | Password |
| Auth_Container_ADOdb::addUser | ( | $ | username, | |
| $ | password, | |||
| $ | additional = "" | |||
| ) |
| Auth_Container_ADOdb::removeUser | ( | $ | username | ) |