[ Index ]
 

Code source de Mantis 1.1.0rc3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/core/adodb/pear/Auth/Container/ -> ADOdb.php (sommaire)

(pas de description)

Poids: 413 lignes (13 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Auth_Container_ADOdb:: (12 méthodes):
  Auth_Container_ADOdb()
  _connect()
  _prepare()
  query()
  _setDefaults()
  _parseOptions()
  fetchData()
  listUsers()
  addUser()
  removeUser()
  showDbg()
  dump()


Classe: Auth_Container_ADOdb  - X-Ref

Storage driver for fetching login data from a database using ADOdb-PHP.

This storage driver can use all databases which are supported
by the ADBdb DB abstraction layer to fetch login data.
See http://php.weblogs.com/adodb for information on ADOdb.
NOTE: The ADOdb directory MUST be in your PHP include_path!

Auth_Container_ADOdb($dsn)   X-Ref
Constructor of the container class

Initate connection to the database via PEAR::ADOdb

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

showDbg( $string )   X-Ref
Pas de description

dump( $var, $str, $vardump = false )   X-Ref
Pas de description



Généré le : Thu Nov 29 09:42:17 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics