PHP Класс Jrean\UserVerification\UserVerification

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$emailView string E-mail view name.
$mailer Illuminate\Contracts\Mail\Mailer Mailer instance.
$schema Illuminate\Database\Schema\Builder Schema builder instance.

Открытые методы

Метод Описание
__construct ( Illuminate\Contracts\Mail\Mailer $mailer, Illuminate\Database\Schema\Builder $schema ) : void Create a new instance.
emailView ( string $name ) : Jrean\UserVerification Set the e-mail view name.
generate ( Illuminate\Contracts\Auth\Authenticatable $user ) : boolean Generate and save a verification token for the given user.
process ( string $email, string $token, string $userTable ) : void Process the user verification for the given e-mail and token.
send ( Illuminate\Contracts\Auth\Authenticatable $user, string $subject = null, string $from = null, string $name = null ) : boolean Send by e-mail a link containing the verification token.
sendLater ( integer $seconds, Illuminate\Contracts\Auth\Authenticatable $user, string $subject = null, string $from = null, string $name = null ) : boolean Send later by e-mail a link containing the verification token.
sendLaterOn ( string $queue, integer $seconds, Illuminate\Contracts\Auth\Authenticatable $user, string $subject = null, string $from = null, string $name = null ) : boolean Send later on the given queue by e-mail a link containing the verification token.
sendQueue ( Illuminate\Contracts\Auth\Authenticatable $user, string $subject = null, string $from = null, string $name = null ) : boolean Queue and send by e-mail a link containing the verification token.
sendQueueOn ( string $queue, Illuminate\Contracts\Auth\Authenticatable $user, string $subject = null, string $from = null, string $name = null ) : boolean Queue on the given queue and send by e-mail a link containing the verification token.

Защищенные методы

Метод Описание
emailLaterOnVerificationLink ( $queue, integer $seconds, Illuminate\Contracts\Auth\Authenticatable $user, string $subject, string $from = null, string $name = null ) : mixed Prepare and send later on the given queue the e-mail with the verification token link.
emailLaterVerificationLink ( integer $seconds, Illuminate\Contracts\Auth\Authenticatable $user, string $subject, string $from = null, string $name = null ) : mixed Prepare and send later the e-mail with the verification token link.
emailQueueOnVerificationLink ( string $queue, Illuminate\Contracts\Auth\Authenticatable $user, string $subject, string $from = null, string $name = null ) : mixed Prepare and push a job onto the given queue to send the e-mail with the verification token link.
emailQueueVerificationLink ( Illuminate\Contracts\Auth\Authenticatable $user, string $subject, string $from = null, string $name = null ) : mixed Prepare and push a job onto the queue to send the e-mail with the verification token link.
emailVerificationLink ( Illuminate\Contracts\Auth\Authenticatable $user, string $subject, string $from = null, string $name = null ) : mixed Prepare and send the e-mail with the verification token link.
generateToken ( ) : string | boolean Generate the verification token.
getUserByEmail ( string $email, string $table ) : stdClass Get the user by e-mail.
hasColumn ( Illuminate\Contracts\Auth\Authenticatable $user, string $column ) : boolean Check if the given model talbe has the given column.
isCompliant ( Illuminate\Contracts\Auth\Authenticatable $user ) : boolean Determine if the given model table has the verified and verification_token columns.
isVerified ( stdClass $user ) : void Check if the given user is verified.
saveToken ( Illuminate\Contracts\Auth\Authenticatable $user, string $token ) : boolean Update and save the model instance with the verification token.
updateUser ( stdClass $user ) : void Update and save user object.
verifyToken ( string $storedToken, string $requestToken ) : void Compare the two given tokens.
wasVerified ( stdClass $user ) : void Update and save the given user as verified.

Описание методов

__construct() публичный Метод

Create a new instance.
public __construct ( Illuminate\Contracts\Mail\Mailer $mailer, Illuminate\Database\Schema\Builder $schema ) : void
$mailer Illuminate\Contracts\Mail\Mailer
$schema Illuminate\Database\Schema\Builder
Результат void

emailView() публичный Метод

Set the e-mail view name.
public emailView ( string $name ) : Jrean\UserVerification
$name string
Результат Jrean\UserVerification

generate() публичный Метод

Generate and save a verification token for the given user.
public generate ( Illuminate\Contracts\Auth\Authenticatable $user ) : boolean
$user Illuminate\Contracts\Auth\Authenticatable
Результат boolean

generateToken() защищенный Метод

Generate the verification token.
protected generateToken ( ) : string | boolean
Результат string | boolean

getUserByEmail() защищенный Метод

Get the user by e-mail.
protected getUserByEmail ( string $email, string $table ) : stdClass
$email string
$table string
Результат stdClass

hasColumn() защищенный Метод

Check if the given model talbe has the given column.
protected hasColumn ( Illuminate\Contracts\Auth\Authenticatable $user, string $column ) : boolean
$user Illuminate\Contracts\Auth\Authenticatable
$column string
Результат boolean

isCompliant() защищенный Метод

Determine if the given model table has the verified and verification_token columns.
protected isCompliant ( Illuminate\Contracts\Auth\Authenticatable $user ) : boolean
$user Illuminate\Contracts\Auth\Authenticatable
Результат boolean

isVerified() защищенный Метод

Check if the given user is verified.
protected isVerified ( stdClass $user ) : void
$user stdClass
Результат void

process() публичный Метод

Process the user verification for the given e-mail and token.
public process ( string $email, string $token, string $userTable ) : void
$email string
$token string
$userTable string
Результат void

saveToken() защищенный Метод

Update and save the model instance with the verification token.
protected saveToken ( Illuminate\Contracts\Auth\Authenticatable $user, string $token ) : boolean
$user Illuminate\Contracts\Auth\Authenticatable
$token string
Результат boolean

send() публичный Метод

Send by e-mail a link containing the verification token.
public send ( Illuminate\Contracts\Auth\Authenticatable $user, string $subject = null, string $from = null, string $name = null ) : boolean
$user Illuminate\Contracts\Auth\Authenticatable
$subject string
$from string
$name string
Результат boolean

sendLater() публичный Метод

Send later by e-mail a link containing the verification token.
public sendLater ( integer $seconds, Illuminate\Contracts\Auth\Authenticatable $user, string $subject = null, string $from = null, string $name = null ) : boolean
$seconds integer
$user Illuminate\Contracts\Auth\Authenticatable
$subject string
$from string
$name string
Результат boolean

sendLaterOn() публичный Метод

Send later on the given queue by e-mail a link containing the verification token.
public sendLaterOn ( string $queue, integer $seconds, Illuminate\Contracts\Auth\Authenticatable $user, string $subject = null, string $from = null, string $name = null ) : boolean
$queue string
$seconds integer
$user Illuminate\Contracts\Auth\Authenticatable
$subject string
$from string
$name string
Результат boolean

sendQueue() публичный Метод

Queue and send by e-mail a link containing the verification token.
public sendQueue ( Illuminate\Contracts\Auth\Authenticatable $user, string $subject = null, string $from = null, string $name = null ) : boolean
$user Illuminate\Contracts\Auth\Authenticatable
$subject string
$from string
$name string
Результат boolean

sendQueueOn() публичный Метод

Queue on the given queue and send by e-mail a link containing the verification token.
public sendQueueOn ( string $queue, Illuminate\Contracts\Auth\Authenticatable $user, string $subject = null, string $from = null, string $name = null ) : boolean
$queue string
$user Illuminate\Contracts\Auth\Authenticatable
$subject string
$from string
$name string
Результат boolean

updateUser() защищенный Метод

Update and save user object.
protected updateUser ( stdClass $user ) : void
$user stdClass
Результат void

verifyToken() защищенный Метод

Compare the two given tokens.
protected verifyToken ( string $storedToken, string $requestToken ) : void
$storedToken string
$requestToken string
Результат void

wasVerified() защищенный Метод

Update and save the given user as verified.
protected wasVerified ( stdClass $user ) : void
$user stdClass
Результат void

Описание свойств

$emailView защищенное свойство

E-mail view name.
protected string $emailView
Результат string

$mailer защищенное свойство

Mailer instance.
protected Mailer,Illuminate\Contracts\Mail $mailer
Результат Illuminate\Contracts\Mail\Mailer

$schema защищенное свойство

Schema builder instance.
protected Builder,Illuminate\Database\Schema $schema
Результат Illuminate\Database\Schema\Builder