MetaFox

UserVerifyRepository extends AbstractRepository
in package
implements UserVerifyRepositoryInterface

Class AbstractRepository.

Table of Contents

Interfaces

UserVerifyRepositoryInterface
Interface UserVerify.

Properties

$disableSponsor  : mixed
$skipPresenter  : mixed

Methods

addSuffixCode()  : string
buildQueryScopes()  : mixed
checkResend()  : void
cleanContent()  : string|null
cleanTitle()  : string|null
cleanupPending()  : mixed
commonVerify()  : void
createMany()  : bool
generate()  : UserVerify|null
getRemainingTime()  : int
getUserContractMorphTypeColumns()  : array<string|int, string>
getVerifyCode()  : string
hasSponsorView()  : bool
invalidatePendingVerify()  : mixed
isNoSponsorView()  : bool
likeOperator()  : string
return the case-insensitive LIKE operator bases on the current database driver.
model()  : mixed
mustVerifyEmail()  : bool
mustVerifyPhoneNumber()  : bool
resend()  : void
resendLink()  : void
sendVerificationEmail()  : void
sendVerificationPhoneNumber()  : void
where()  : $this
withUserMorphTypeActiveScope()  : self
checkHasVerifyVerifiable()  : void
getLatestUserVerifyByUserId()  : UserVerify|null
getUserByVerifiableField()  : User|null
shouldResend()  : bool
getPendingQuery()  : Builder

Properties

Methods

addSuffixCode()

public addSuffixCode(string $code, string $action) : string
Parameters
$code : string
$action : string
Return values
string

buildQueryScopes()

public buildQueryScopes(mixed $query, mixed $model, mixed $criteria) : mixed
Parameters
$query : mixed
$model : mixed
$criteria : mixed

cleanContent()

public cleanContent(string|null $string) : string|null
Parameters
$string : string|null
Return values
string|null

cleanTitle()

public cleanTitle(string|null $string) : string|null
Parameters
$string : string|null
Return values
string|null

createMany()

public createMany(array<string|int, mixed> $items) : bool
Parameters
$items : array<string|int, mixed>
Return values
bool

getRemainingTime()

public getRemainingTime(User $user, string $action) : int
Parameters
$user : User
$action : string
Return values
int

getUserContractMorphTypeColumns()

public getUserContractMorphTypeColumns() : array<string|int, string>
Return values
array<string|int, string>

getVerifyCode()

public getVerifyCode(string $action) : string
Parameters
$action : string
Return values
string

hasSponsorView()

public hasSponsorView(array<string|int, mixed> $attributes) : bool
Parameters
$attributes : array<string|int, mixed>
Return values
bool

invalidatePendingVerify()

public invalidatePendingVerify(User $user, string $action) : mixed
Parameters
$user : User
$action : string

isNoSponsorView()

public isNoSponsorView(string|null $view) : bool
Parameters
$view : string|null
Return values
bool

likeOperator()

return the case-insensitive LIKE operator bases on the current database driver.

public likeOperator() : string
Return values
string

mustVerifyEmail()

public mustVerifyEmail(string|null $email, array<string|int, mixed> $attributes) : bool
Parameters
$email : string|null
$attributes : array<string|int, mixed>
Return values
bool

mustVerifyPhoneNumber()

public mustVerifyPhoneNumber(string|null $phoneNumber, array<string|int, mixed> $attributes) : bool
Parameters
$phoneNumber : string|null
$attributes : array<string|int, mixed>
Return values
bool

resend()

public resend(array<string|int, mixed> $params) : void
Parameters
$params : array<string|int, mixed>
public resendLink(User $user, string $action, string $verifiableValue) : void
Parameters
$user : User
$action : string
$verifiableValue : string
Tags
deprecated

Need remove for some next version

sendVerificationEmail()

public sendVerificationEmail(User $user, string $verifiable) : void
Parameters
$user : User
$verifiable : string

sendVerificationPhoneNumber()

public sendVerificationPhoneNumber(User $user, string $verifiable) : void
Parameters
$user : User
$verifiable : string

where()

public where(array<string|int, mixed> $params) : $this
Parameters
$params : array<string|int, mixed>
Tags
throws
RepositoryException
Return values
$this

withUserMorphTypeActiveScope()

public withUserMorphTypeActiveScope() : self
Return values
self

getLatestUserVerifyByUserId()

protected getLatestUserVerifyByUserId(int $userId, string $verifiableValue) : UserVerify|null
Parameters
$userId : int
$verifiableValue : string
Return values
UserVerify|null

getUserByVerifiableField()

protected getUserByVerifiableField(string $verifiableField, string $verifiableValue) : User|null
Parameters
$verifiableField : string
$verifiableValue : string
Return values
User|null

shouldResend()

protected shouldResend(int $userId, string $verifiableField, string $verifiableValue, string $verifyAtField) : bool
Parameters
$userId : int
$verifiableField : string
$verifiableValue : string
$verifyAtField : string
Return values
bool

getPendingQuery()

private getPendingQuery(User $user, string $action) : Builder
Parameters
$user : User
$action : string
Return values
Builder

        
On this page

Search results