Storage drivers (Previous) (Next) Auth::getAuth()

Last updated: Sun, 16 May 2004

Auth::Auth()

Auth::Auth() -- constructor

ïÐÉÓÁÎÉÅ

Constructor for the authentication system.

ðÁÒÁÍÅÔÒ

string $storageDriver

name of the storage driver that should be used

mixed $options

the options that are passed to the storage container

string $loginFunction

the name of a user-defined function that prints the login screen

boolean $showLogin

defines if the login is optional or not

úÁÍÅÔËÁ

üÔÁ ÆÕÎËÃÉÑ ÎÅ ÄÏÌÖÎÁ ×ÙÚÙ×ÁÔØÓÑ ÓÔÁÔÉÞÅÓËÉ.

ðÒÉÍÅÒ

This example shows you how you can specifiy alternative names for the database table and the column names. In our example, we use the table myAuth, select the username from the field myUserColumn and the password from the field myPasswordColumn. The default values for this fields are auth, username and password. Note that you can also specify an existing DB object with the dsn parameter instead of a DSN.

This feature is necessary if you want to use PEAR::Auth with a database layout that is different from the one PEAR::Auth uses by default.

Storage drivers (Previous) (Next) Auth::getAuth()

Download Documentation Last updated: Sun, 16 May 2004
Hosting
HIVE: All information for read only. Please respect copyright!
Hosted by hive ÊÃÁ: Êèåâñêàÿ ãîðîäñêàÿ áèáëèîòåêà