PHP Class Pop\Auth\Adapter\File

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

Protected Properties

Property Type Description
$delimiter string Field delimiter
$users array Users

Public Methods

Method Description
__construct ( string $filename, string $delimiter = '|' ) : File Constructor
authenticate ( string $username, string $password, integer $encryption, array $options ) : integer Method to authenticate the user

Protected Methods

Method Description
parse ( string $filename ) : void Method to parse the source file.

Method Details

__construct() public method

Instantiate the AuthFile object
public __construct ( string $filename, string $delimiter = '|' ) : File
$filename string
$delimiter string
return File

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

parse() protected method

Method to parse the source file.
protected parse ( string $filename ) : void
$filename string
return void

Property Details

$delimiter protected_oe property

Field delimiter
protected string $delimiter
return string

$users protected_oe property

Users
protected array $users
return array