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

Class: LiveUser_Auth_DB

Source Location: /LiveUser-0.15.0/Auth/DB.php

Class Overview

LiveUser_Auth_Common
   |
   --LiveUser_Auth_DB

DB container for Authentication


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2002-2005 Markus Wolff

Variables

Methods


Inherited Variables

Inherited Methods

Class: LiveUser_Auth_Common

LiveUser_Auth_Common::LiveUser_Auth_Common()
Class constructor. Feel free to override in backend subclasses.
LiveUser_Auth_Common::decryptPW()
Decrypts a password so that it can be compared with the user input. Uses the algorithm defined in the passwordEncryptionMode property.
LiveUser_Auth_Common::disconnect()
properly disconnect from resources
LiveUser_Auth_Common::encryptPW()
Encrypts a password for storage in a backend container.
LiveUser_Auth_Common::externalValuesMatch()
Check if the stored external values match the current external values
LiveUser_Auth_Common::freeze()
store all properties in an array
LiveUser_Auth_Common::getProperty()
Function returns the inquired value if it exists in the class.
LiveUser_Auth_Common::init()
Load the storage container
LiveUser_Auth_Common::isNewLogin()
Checks if there's enough time between lastLogin and current login (now) to count as a new login.
LiveUser_Auth_Common::login()
Tries to make a login with the given handle and password.
LiveUser_Auth_Common::setExternalValues()
Creates associative array of values from $externalValues['values'] with $keysToCheck
LiveUser_Auth_Common::unfreeze()
Reinitializes properties

Class Details

[line 77]
DB container for Authentication

This is a PEAR::DB backend driver for the LiveUser class. A PEAR::DB connection object can be passed to the constructor to reuse an existing connection. Alternatively, a DSN can be passed to open a new one.

Requirements:

  • File "LiveUser.php" (contains the parent class "LiveUser")
  • Array of connection options or a PEAR::DB connection object must be passed to the constructor. Example: array('dsn' => 'mysql://user:pass@host/db_name', 'connection => &$conn, # PEAR::DB connection object 'loginTimeout' => 0, 'allowDuplicateHandles' => 1);



[ Top ]


Class Variables

$authTable =  'liveuser_users'

[line 110]

Auth table Table where the auth data is stored.
  • Access: public

Type:   string


[ Top ]



Method Detail

disconnect   [line 269]

void disconnect( )

Properly disconnect from database
  • Access: public

Overrides LiveUser_Auth_Common::disconnect() (properly disconnect from resources)
[ Top ]

init   [line 121]

boolean init( mixed &$conf, string $containerName)

Load the storage container
  • Return: true on success or false on failure
  • Access: public

Overrides LiveUser_Auth_Common::init() (Load the storage container)

Parameters:

mixed   &$conf   —  Name of array containing the configuration.
string   $containerName   —  name of the container that should be used

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:29:00 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.