Mail
extends Model
in package
Mail Class
Table of Contents
- $db : Database
- Contains the Database instance
- __construct() : mixed
- Constructor
- __destruct() : mixed
- Destructor
- getEmailUsername() : string|null
- Check if email exists returning the user name
- setUserNewPassword() : void
- Set a new password for the user
- setNewDb() : void
- Creates a new Database object
Properties
$db
Contains the Database instance
protected
Database
$db
Methods
__construct()
Constructor
public
__construct() : mixed
Return values
mixed —__destruct()
Destructor
public
__destruct() : mixed
Return values
mixed —getEmailUsername()
Check if email exists returning the user name
public
getEmailUsername(string $email) : string|null
Parameters
- $email : string
Return values
string|null —setUserNewPassword()
Set a new password for the user
public
setUserNewPassword(string $email, string $new_password) : void
Parameters
- $email : string
- $new_password : string
Return values
void —setNewDb()
Creates a new Database object
private
setNewDb() : void