AccountInfoSettingForm
extends AbstractForm
in package
Uses
GenderTrait, MfaFieldTrait
Class AccountInfoSettingForm.
Tags
Table of Contents
Properties
Methods
- applyMfaRequiredEmailField() : void
- applyMfaRequiredPhoneField() : void
- boot() : void
- getCityCode() : array<string|int, mixed>|null
- initialize() : void
- addRequiredToField() : void
- addRequiredValidator() : void
- buildRoleField() : FormField|null
- getEmailField() : AbstractField
- getPasswordValidate() : StringShape
- getPhoneField() : AbstractField
- hasRoleField() : bool
- isServiceEnabled() : bool
- prepare() : void
- userMfaResource() : User
- buildProfilePictureField() : mixed
- getDefaultValue() : array<string|int, mixed>
Properties
$resource
public
User
$resource
Methods
applyMfaRequiredEmailField()
public
applyMfaRequiredEmailField(AbstractField $field) : void
Parameters
- $field : AbstractField
applyMfaRequiredPhoneField()
public
applyMfaRequiredPhoneField(AbstractField $field) : void
Parameters
- $field : AbstractField
boot()
public
boot(int $id, UserRepositoryInterface $repository) : void
Parameters
- $id : int
- $repository : UserRepositoryInterface
getCityCode()
public
getCityCode(UserProfile|null $profile) : array<string|int, mixed>|null
Parameters
- $profile : UserProfile|null
Return values
array<string|int, mixed>|nullinitialize()
public
initialize() : void
addRequiredToField()
protected
addRequiredToField(AbstractField $field, string $service) : void
Parameters
- $field : AbstractField
- $service : string
addRequiredValidator()
protected
addRequiredValidator(AbstractField $field, string $service) : void
Parameters
- $field : AbstractField
- $service : string
buildRoleField()
protected
buildRoleField() : FormField|null
Return values
FormField|nullgetEmailField()
protected
getEmailField() : AbstractField
Return values
AbstractFieldgetPasswordValidate()
protected
getPasswordValidate() : StringShape
Return values
StringShapegetPhoneField()
protected
getPhoneField() : AbstractField
Return values
AbstractFieldhasRoleField()
protected
hasRoleField() : bool
Return values
boolisServiceEnabled()
protected
isServiceEnabled(string $service) : bool
Parameters
- $service : string
Return values
boolprepare()
protected
prepare() : void
userMfaResource()
protected
userMfaResource() : User
Return values
UserbuildProfilePictureField()
private
buildProfilePictureField(Section $basic) : mixed
Parameters
- $basic : Section
getDefaultValue()
private
getDefaultValue() : array<string|int, mixed>