MetaFox

UserRegisterRequest extends FormRequest
in package

Class UserRegisterRequest.

Tags
SuppressWarnings

(PHPMD.CouplingBetweenObjects)

SuppressWarnings

(PHPMD.CyclomaticComplexity)

SuppressWarnings

(PHPMD.NPathComplexity)

SuppressWarnings

(PHPMD.UnusedFormalParameter)

Table of Contents

Constants

ACTION_CAPTCHA_NAME  = 'user.user_signup'

Properties

$passwordRule  : MetaFoxPasswordFormatRule

Methods

authorize()  : bool
Determine if the user is authorized to make this request.
getPasswordRule()  : mixed
handleGenderField()  : void
messages()  : array<string, mixed>
rules()  : array<string, mixed>
Get the validation rules that apply to the request.
setPasswordRule()  : void
validated()  : mixed
customRepository()  : ProfileRepositoryInterface
getBasicProfileFields()  : array<string|int, string>
handleBasicProfileFields()  : void
handleCustomProfileFields()  : void
prepareForValidation()  : mixed
transformCityCode()  : void
transformCountryState()  : void
transformUserLanguage()  : void
transformUserName()  : void
preparePhoneNumberForValidation()  : mixed

Constants

Properties

Methods

authorize()

Determine if the user is authorized to make this request.

public authorize() : bool
Return values
bool

handleGenderField()

public handleGenderField(array<string, mixed> &$data) : void
Parameters
$data : array<string, mixed>

messages()

public messages() : array<string, mixed>
Return values
array<string, mixed>

rules()

Get the validation rules that apply to the request.

public rules() : array<string, mixed>
Return values
array<string, mixed>

setPasswordRule()

public setPasswordRule(mixed $passwordRule) : void
Parameters
$passwordRule : mixed

validated()

public validated([mixed $key = null ][, mixed $default = null ]) : mixed
Parameters
$key : mixed = null
$default : mixed = null

customRepository()

protected customRepository() : ProfileRepositoryInterface
Return values
ProfileRepositoryInterface

getBasicProfileFields()

protected getBasicProfileFields() : array<string|int, string>
Return values
array<string|int, string>

handleBasicProfileFields()

protected handleBasicProfileFields(array<string, mixed> &$data) : void
Parameters
$data : array<string, mixed>

handleCustomProfileFields()

protected handleCustomProfileFields(array<string, mixed> &$data) : void
Parameters
$data : array<string, mixed>

transformCityCode()

protected transformCityCode(array<string, mixed> &$data) : void
Parameters
$data : array<string, mixed>

transformCountryState()

protected transformCountryState(array<string, mixed> $data) : void
Parameters
$data : array<string, mixed>

transformUserLanguage()

protected transformUserLanguage(array<string, mixed> &$data) : void
Parameters
$data : array<string, mixed>

transformUserName()

protected transformUserName(array<string, mixed> &$data) : void
Parameters
$data : array<string, mixed>

preparePhoneNumberForValidation()

private preparePhoneNumberForValidation() : mixed

        
On this page

Search results