HasValidateUserTrait
Trait HasValidateUserTrait.
Tags
Table of Contents
Methods
- getVerifyBy() : string|null
- validateStatuses() : void
- validateVerifiedBy() : void
- getMessageTextForOldMobileVersion() : string
- isOldMobileVersion() : bool
- getBannedParams() : array<string|int, mixed>
- transformBannedReason() : string|null
- validateApproved() : void
- validateBanned() : void
- validateEmailAddress() : mixed
- validatePhoneNumber() : void
- validateVerified() : mixed
Methods
getVerifyBy()
public
getVerifyBy(User $user, string $value) : string|null
Parameters
- $user : User
- $value : string
Return values
string|nullvalidateStatuses()
public
validateStatuses(User $user) : void
Parameters
- $user : User
validateVerifiedBy()
public
validateVerifiedBy(User $user, string $verifyBy) : void
Parameters
- $user : User
- $verifyBy : string
getMessageTextForOldMobileVersion()
protected
getMessageTextForOldMobileVersion(string|null $reason, int $time) : string
Parameters
- $reason : string|null
- $time : int
Tags
Return values
stringisOldMobileVersion()
protected
isOldMobileVersion() : bool
Tags
Return values
boolgetBannedParams()
private
getBannedParams(UserBan $userBanned) : array<string|int, mixed>
Parameters
- $userBanned : UserBan
Return values
array<string|int, mixed>transformBannedReason()
private
transformBannedReason(string|null $reason) : string|null
Parameters
- $reason : string|null
Return values
string|nullvalidateApproved()
private
validateApproved(User $user) : void
Parameters
- $user : User
validateBanned()
private
validateBanned(User $user) : void
Parameters
- $user : User
validateEmailAddress()
private
validateEmailAddress(User $user) : mixed
Parameters
- $user : User
validatePhoneNumber()
private
validatePhoneNumber(User $user) : void
Parameters
- $user : User
validateVerified()
private
validateVerified(User $user) : mixed
Parameters
- $user : User