Свойство | Тип | Описание | |
---|---|---|---|
$db | |||
$users |
Метод | Описание | |
---|---|---|
__construct ( |
EmailConfirmationService constructor. | |
createEmailConfirmation ( |
Creates a new email confirmation in the database and returns the token. | |
deleteConfirmationsByUser ( |
Delete all email confirmations that belong to a user. | |
getEmailConfirmationFromToken ( string $token ) : EmailConfirmation | Gets an email confirmation by looking up the token, Ensures the token has not expired. | |
sendConfirmation ( |
Create new confirmation for a user, Also removes any existing old ones. |
Метод | Описание | |
---|---|---|
getToken ( ) : string | Creates a unique token within the email confirmation database. |
public __construct ( |
||
$db | ||
$users |
public createEmailConfirmation ( |
||
$user | ||
Результат | string |
public deleteConfirmationsByUser ( |
||
$user | ||
Результат | mixed |
public getEmailConfirmationFromToken ( string $token ) : EmailConfirmation | ||
$token | string | |
Результат | EmailConfirmation |
public sendConfirmation ( |
||
$user |