TYPO3 CMS
TYPO3_6-2
|
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 = '' | |
Auth_Container_ADOdb::_connect | ( | $dsn | ) |
Connect to database by using the given DSN string
private
string | DSN string |
Definition at line 90 of file ADOdb.php.
Referenced by _prepare().
Auth_Container_ADOdb::_parseOptions | ( | $array | ) |
Parse options passed to the container class
private
array |
Definition at line 189 of file ADOdb.php.
Referenced by Auth_Container_ADOdb().
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
Definition at line 128 of file ADOdb.php.
References _connect().
Referenced by fetchData(), listUsers(), and query().
Auth_Container_ADOdb::_setDefaults | ( | ) |
Set some default options
private
Definition at line 169 of file ADOdb.php.
Referenced by Auth_Container_ADOdb().
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 |
Definition at line 328 of file ADOdb.php.
References DB\isError(), and query().
Auth_Container_ADOdb::Auth_Container_ADOdb | ( | $dsn | ) |
Constructor of the container class
Initate connection to the database via PEAR::ADOdb
string | Connection data or DB object |
Definition at line 64 of file ADOdb.php.
References $dsn, _parseOptions(), and _setDefaults().
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 |
Definition at line 222 of file ADOdb.php.
References _prepare(), and DB\isError().
Auth_Container_ADOdb::listUsers | ( | ) |
Definition at line 281 of file ADOdb.php.
References _prepare(), and DB\isError().
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 |
Definition at line 151 of file ADOdb.php.
References _prepare().
Referenced by addUser(), and removeUser().
Auth_Container_ADOdb::removeUser | ( | $username | ) |
Remove user from the storage container
public
string | Username |
Definition at line 376 of file ADOdb.php.
References DB\isError(), and query().
Auth_Container_ADOdb::$dsn = '' |
Definition at line 46 of file ADOdb.php.
Referenced by Auth_Container_ADOdb().