Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 17204 программиста и 1834 робота. Сейчас ищут 1638 программистов ...
Auth_Container_DBLite
Вернуться к: Auth
Auth_Container_DBLite
Auth_Container_DBLite – Authenticate against a database using DB
The DBLite container is a simplified version of the DB container. It does away with all the code related to user management and simply provides user authentication.
The storage-specific argument for the Auth constructor() is an array of options.
Option | Data Type | Default value | Description |
---|---|---|---|
"dsn" | string | " | A valid and well-formed DSN . |
"table" | string | "auth" | The name of the database table, where the authorization data is stored. |
"usernamecol" | string | "username" | The name of the column, where the username is stored |
"passwordcol" | string | "password" | The name of the column, where the crypted password is stored. |
"db_fields" | array | array() | An array of extra fields to retrieve when loading the user details. |
"cryptType" | string | "md5" | The encryption type the password is stored in. |
"auto_quote" | boolean | TRUE | Whether to enable automatic quoting of database table and field names. |
"db_options" | array | array() | An array of options to be passed to the PEAR::DB constructor. See PEAR::DB::setOption() for more information. |
"db_where" | string | " | A string to be appended to the WHERE clause of queries against the database. It is appended to the queries used in fetchData(). Available since Auth 1.5.0. |
Вернуться к: Auth