Auth
[ class tree: Auth ] [ index: Auth ] [ all elements ]

Class: Auth_Container_DBLite

Source Location: /Auth-1.6.4/Auth/Container/DBLite.php

Class Overview

Auth_Container
   |
   --Auth_Container_DBLite

A lighter storage driver for fetching login data from a database


Author(s):

Version:

  • Release: @package_version@ File: $Revision: 256753 $

Copyright:

  • 2001-2006 The PHP Group

Variables

Methods


Inherited Variables

Inherited Methods

Class: Auth_Container

Auth_Container::Auth_Container()
Constructor
Auth_Container::addUser()
Add a new user to the storage container
Auth_Container::changePassword()
Change password for user in the storage container
Auth_Container::fetchData()
Fetch data from storage container
Auth_Container::getCryptType()
Returns the crypt current crypt type of the container
Auth_Container::getUser()
Returns a user assoc array
Auth_Container::listUsers()
List all users that are available from the storage container
Auth_Container::log()
Log a message to the Auth log
Auth_Container::removeUser()
Remove user from the storage container
Auth_Container::supportsChallengeResponse()
Returns true if the container supports Challenge Response
Auth_Container::verifyPassword()
Crypt and verfiy the entered password

Class Details

[line 52]
A lighter storage driver for fetching login data from a database

This driver is derived from the DB storage container but with the user manipulation function removed for smaller file size by the PEAR DB abstraction layer to fetch login data.



[ Top ]


Class Variables

$activeUser =  ''

[line 74]

User that is currently selected from the DB.

Type:   string
Overrides:   Array


[ Top ]

$db =  null

[line 67]

DB object

Type:   object


[ Top ]

$dsn =  ''

[line 68]


Type:   mixed


[ Top ]

$options = array()

[line 61]

Additional options for the storage container

Type:   array


[ Top ]



Method Detail

Auth_Container_DBLite (Constructor)   [line 87]

object Returns Auth_Container_DBLite( string $dsn)

Constructor of the container class

Initate connection to the database via PEAR::DB

  • Return: an error object if something went wrong

Parameters:

string   $dsn   —  Connection data or DB object

[ Top ]

fetchData   [line 247]

mixed fetchData( string $username, string $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.

  • Return: Error object or boolean

Overrides Auth_Container::fetchData() (Fetch data from storage container)

Parameters:

string   $username   —  Username
string   $password   —  Password

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:41:38 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.