Solutions Open Source

Référence de la classe Auth_Container_ADOdb

Liste de tous les membres

Fonctions membres publiques

 Auth_Container_ADOdb ($dsn)
 _connect ($dsn)
 _prepare ()
 query ($query)
 _setDefaults ()
 _parseOptions ($array)
 fetchData ($username, $password)
 listUsers ()
 addUser ($username, $password, $additional="")
 removeUser ($username)

Attributs publics

 $options = array()
 $db = null
 $dsn = ''
 $activeUser = ''


Documentation des fonctions membres

Auth_Container_ADOdb::Auth_Container_ADOdb ( dsn  ) 

Constructor of the container class

Initate connection to the database via PEAR::ADOdb

Paramètres:
string Connection data or DB object
Renvoie:
object Returns an error object if something went wrong

Auth_Container_ADOdb::_connect ( dsn  ) 

Connect to database by using the given DSN string

private

Paramètres:
string DSN string
Renvoie:
mixed Object on error, otherwise bool

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

Renvoie:
mixed True or a DB error object.

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

Paramètres:
string Query string
Renvoie:
mixed a DB_result object or DB_OK on success, a DB or PEAR error on failure

Auth_Container_ADOdb::_setDefaults (  ) 

Set some default options

private

Renvoie:
void

Auth_Container_ADOdb::_parseOptions ( array  ) 

Parse options passed to the container class

private

Paramètres:
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.

Paramètres:
string Username
string Password
Renvoie:
mixed Error object or boolean

Auth_Container_ADOdb::listUsers (  ) 

Auth_Container_ADOdb::addUser ( username,
password,
additional = "" 
)

Add user to the storage container

public

Paramètres:
string Username
string Password
mixed Additional information that are stored in the DB
Renvoie:
mixed True on success, otherwise error object

Auth_Container_ADOdb::removeUser ( username  ) 

Remove user from the storage container

public

Paramètres:
string Username
Renvoie:
mixed True on success, otherwise error object


Documentation des données membres

Auth_Container_ADOdb::$options = array()

Auth_Container_ADOdb::$db = null

Auth_Container_ADOdb::$dsn = ''

Auth_Container_ADOdb::$activeUser = ''


La documentation de cette classe a été générée à partir du fichier suivant :
Généré le Fri Aug 31 11:40:47 2007 pour OBLADY - Typo3 API v4.1.2 par  doxygen 1.5.3