\AccountDetails

Summary

Methods
Properties
Constants
getAllDisputes()
getAccountById()
getAccountByEmail()
getDetailsById()
getDetailsByEmail()
getDetailsBy()
getRowsFromTable()
arrayToObject()
emailToId()
validCredentials()
correctPassword()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getAllDisputes()

getAllDisputes(  $account) 

Parameters

$account

getAccountById()

getAccountById(  $id) 

Parameters

$id

getAccountByEmail()

getAccountByEmail(  $email) 

Parameters

$email

getDetailsById()

getDetailsById(  $value) 

Parameters

$value

getDetailsByEmail()

getDetailsByEmail(  $value) 

Parameters

$value

getDetailsBy()

getDetailsBy(  $key,   $value) 

Parameters

$key
$value

getRowsFromTable()

getRowsFromTable(  $table,   $key,   $value) 

Parameters

$table
$key
$value

arrayToObject()

arrayToObject(  $account) 

Parameters

$account

emailToId()

emailToId(String  $email) : integer

Given an email, returns the login ID of the account.

NOTE: It may be tempting to move this to getDetailsByEmail() but we often call emailToId BEFORE adding a corresponding entry to individuals or organisations, so this should be left untouched.

Parameters

String $email

Returns

integer

validCredentials()

validCredentials(String  $email, String  $password) : boolean

Returns true or false depending on whether or not the provided email and password combination match an account in the database.

Parameters

String $email

The email address.

String $password

The unencrypted password.

Returns

boolean —

True if the credentials are valid, otherwise false.

correctPassword()

correctPassword(String  $inputtedPassword, String  $encryptedPassword) : boolean

Returns true or false depending on whether or not the inputted password is a match for the encrypted password we have on file.

Parameters

String $inputtedPassword

The unencrypted password.

String $encryptedPassword

The encrypted password we're checking our unencrypted password against.

Returns

boolean —

True if the inputted password is a match.