PHP Class Pop\Auth\Adapter\Table

Author: Nick Sagona, III ([email protected])
Inheritance: extends AbstractAdapter
显示文件 Open project: nicksagona/PopPHP Class Usage Examples

Protected Properties

Property Type Description
$accessField string Access field
$passwordField string Password field
$tableName string DB table name / class name
$usernameField string Username field

Public Methods

Method Description
__construct ( string $tableName, string $usernameField = 'username', string $passwordField = 'password', string $accessField = null ) : Table Constructor
authenticate ( string $username, string $password, integer $encryption, array $options ) : integer Method to authenticate the user

Method Details

__construct() public method

Instantiate the DbTable object
public __construct ( string $tableName, string $usernameField = 'username', string $passwordField = 'password', string $accessField = null ) : Table
$tableName string
$usernameField string
$passwordField string
$accessField string
return Table

authenticate() public method

Method to authenticate the user
public authenticate ( string $username, string $password, integer $encryption, array $options ) : integer
$username string
$password string
$encryption integer
$options array
return integer

Property Details

$accessField protected_oe property

Access field
protected string $accessField
return string

$passwordField protected_oe property

Password field
protected string $passwordField
return string

$tableName protected_oe property

DB table name / class name
protected string $tableName
return string

$usernameField protected_oe property

Username field
protected string $usernameField
return string