ILIAS
Release_5_0_x_branch Revision 61816
|
Public Member Functions | |
Auth_Container_DBLite ($dsn) | |
Constructor of the container class. | |
_connect (&$dsn) | |
Connect to database by using the given DSN string. | |
_prepare () | |
Prepare database connection. | |
_parseOptions ($array) | |
Parse options passed to the container class. | |
_quoteDBFields () | |
Quote the db_fields option to avoid the possibility of SQL injection. | |
fetchData ($username, $password) | |
Get user information from database. | |
Public Member Functions inherited from Auth_Container | |
Auth_Container () | |
Constructor. | |
fetchData ($username, $password, $isChallengeResponse=false) | |
Fetch data from storage container. | |
verifyPassword ($password1, $password2, $cryptType="md5") | |
Crypt and verfiy the entered password. | |
supportsChallengeResponse () | |
Returns true if the container supports Challenge Response password authentication. | |
getCryptType () | |
Returns the crypt current crypt type of the container. | |
listUsers () | |
List all users that are available from the storage container. | |
getUser ($username) | |
Returns a user assoc array. | |
addUser ($username, $password, $additional=null) | |
Add a new user to the storage container. | |
removeUser ($username) | |
Remove user from the storage container. | |
changePassword ($username, $password) | |
Change password for user in the storage container. | |
log ($message, $level=AUTH_LOG_DEBUG) | |
Log a message to the Auth log. | |
Public Member Functions inherited from ilAuthContainerBase | |
loginObserver ($a_username, $a_auth) | |
Called after successful login. | |
failedLoginObserver ($a_username, $a_auth) | |
Called after failed login. | |
checkAuthObserver ($a_username, $a_auth) | |
Called after check auth requests. | |
logoutObserver ($a_username, $a_auth) | |
Called after logout. | |
supportsCaptchaVerification () | |
Returns whether or not the auth container supports the verification of captchas This should be true for those auth methods, which are available in the default login form. |
Data Fields | |
$options = array() | |
$db = null | |
$dsn = '' | |
$activeUser = '' | |
Data Fields inherited from Auth_Container | |
$activeUser = "" | |
User that is currently selected from the storage container. | |
$_auth_obj = null | |
The Auth object this container is attached to. |
Definition at line 52 of file DBLite.php.
Auth_Container_DBLite::_connect | ( | & | $dsn | ) |
Connect to database by using the given DSN string.
private
string | DSN string |
Definition at line 119 of file DBLite.php.
References $dsn, AUTH_LOG_DEBUG, PEAR\isError(), Auth_Container\log(), and PEAR\raiseError().
Referenced by _prepare().
Auth_Container_DBLite::_parseOptions | ( | $array | ) |
Parse options passed to the container class.
private
array |
Definition at line 185 of file DBLite.php.
Referenced by Auth_Container_DBLite().
Auth_Container_DBLite::_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 149 of file DBLite.php.
References $res, $t, _connect(), and PEAR\isError().
Referenced by fetchData().
Auth_Container_DBLite::_quoteDBFields | ( | ) |
Quote the db_fields option to avoid the possibility of SQL injection.
private
Definition at line 204 of file DBLite.php.
Referenced by fetchData().
Auth_Container_DBLite::Auth_Container_DBLite | ( | $dsn | ) |
Constructor of the container class.
Initate connection to the database via PEAR::DB
string | Connection data or DB object |
Definition at line 87 of file DBLite.php.
References $dsn, _parseOptions(), and PEAR\raiseError().
Auth_Container_DBLite::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 247 of file DBLite.php.
References $query, $res, _prepare(), _quoteDBFields(), AUTH_LOG_DEBUG, DB_FETCHMODE_ASSOC, Auth_Container\log(), PEAR\raiseError(), Auth\setAuthData(), and Auth_Container\verifyPassword().
Auth_Container_DBLite::$activeUser = '' |
Definition at line 74 of file DBLite.php.
Auth_Container_DBLite::$db = null |
Definition at line 67 of file DBLite.php.
Auth_Container_DBLite::$dsn = '' |
Definition at line 68 of file DBLite.php.
Referenced by _connect(), and Auth_Container_DBLite().
Auth_Container_DBLite::$options = array() |
Definition at line 61 of file DBLite.php.