[ Index ] |
|
Code source de Dolibarr 2.0.1 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 394 lignes (12 kb) |
Inclus ou requis: | 1 fois |
Référencé: | 0 fois |
Nécessite: | 1 fichier htdocs/includes/pear/Auth/Container/DB.php |
Auth_Container_DB:: (10 méthodes):
Auth_Container_DB()
_connect()
_prepare()
query()
_setDefaults()
_parseOptions()
fetchData()
listUsers()
addUser()
removeUser()
Classe: Auth_Container_DB - X-Ref
Storage driver for fetching login data from a databaseAuth_Container_DB($dsn) X-Ref |
Constructor of the container class Initate connection to the database via PEAR::DB param: string Connection data or DB object return: object Returns an error object if something went wrong |
_connect($dsn) X-Ref |
Connect to database by using the given DSN string param: string DSN string return: mixed Object on error, otherwise bool |
_prepare() X-Ref |
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. return: mixed True or a DB error object. |
query($query) X-Ref |
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. param: string Query string return: mixed a DB_result object or DB_OK on success, a DB |
_setDefaults() X-Ref |
Set some default options return: void |
_parseOptions($array) X-Ref |
Parse options passed to the container class param: array |
fetchData($username, $password) X-Ref |
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. param: string Username param: string Password return: mixed Error object or boolean |
listUsers() X-Ref |
Pas de description |
addUser($username, $password, $additional = "") X-Ref |
Add user to the storage container param: string Username param: string Password param: mixed Additional information that are stored in the DB return: mixed True on success, otherwise error object |
removeUser($username) X-Ref |
Remove user from the storage container param: string Username return: mixed True on success, otherwise error object |
Généré le : Mon Nov 26 12:29:37 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |