Öffentliche Methoden | |
Auth_Container_ADOdb ($dsn) | |
_connect ($dsn) | |
_prepare () | |
query ($query) | |
_setDefaults () | |
_parseOptions ($array) | |
fetchData ($username, $password) | |
listUsers () | |
addUser ($username, $password, $additional="") | |
removeUser ($username) | |
Datenfelder | |
$options = array() | |
$db = null | |
$dsn = '' | |
$activeUser = '' | |
_connect | ( | $dsn) |
Connect to database by using the given DSN string
private
string | DSN string |
Definiert in Zeile 90 der Datei ADOdb.php.
Benutzt $dsn.
Wird benutzt von _prepare().
_parseOptions | ( | $array) |
Parse options passed to the container class
private
array |
Definiert in Zeile 189 der Datei ADOdb.php.
Wird benutzt von Auth_Container_ADOdb().
_prepare | ( | ) |
Prepare database connection
This function checks if we have already opened a connection to the database. If that's not the case, a new connection is opened.
private
Definiert in Zeile 128 der Datei ADOdb.php.
Benutzt _connect().
Wird benutzt von fetchData(), listUsers() und query().
_setDefaults | ( | ) |
Set some default options
private
Definiert in Zeile 169 der Datei ADOdb.php.
Wird benutzt von Auth_Container_ADOdb().
addUser | ( | $username, | |
$password, | |||
$additional = "" |
|||
) |
Add user to the storage container
public
string | Username |
string | Password |
mixed | Additional information that are stored in the DB |
Definiert in Zeile 328 der Datei ADOdb.php.
Benutzt DB\isError() und query().
Auth_Container_ADOdb | ( | $dsn) |
Constructor of the container class
Initate connection to the database via PEAR::ADOdb
string | Connection data or DB object |
Definiert in Zeile 64 der Datei ADOdb.php.
Benutzt $dsn, _parseOptions() und _setDefaults().
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 |
Definiert in Zeile 222 der Datei ADOdb.php.
Benutzt _prepare() und DB\isError().
listUsers | ( | ) |
Definiert in Zeile 281 der Datei ADOdb.php.
Benutzt _prepare() und DB\isError().
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 |
Definiert in Zeile 151 der Datei ADOdb.php.
Benutzt _prepare().
Wird benutzt von addUser() und removeUser().
removeUser | ( | $username) |
Remove user from the storage container
public
string | Username |
Definiert in Zeile 376 der Datei ADOdb.php.
Benutzt DB\isError() und query().
$dsn = '' |
Definiert in Zeile 46 der Datei ADOdb.php.
Wird benutzt von _connect() und Auth_Container_ADOdb().