AccountSettingForm
extends AbstractForm
in package
Uses
GenderTrait
Class AccountSettingForm.
Tags
Table of Contents
Constants
- MODULE_KEY = 'module_id'
- VAR_NAME_KEY = 'var_name'
Properties
Methods
- boot() : void
- getCityCode() : array<string|int, mixed>|null
- initialize() : void
- buildRoleField() : FormField|null
- getPasswordValidate() : StringShape
- hasRoleField() : bool
- prepare() : void
- buildCustomField() : void
- buildModuleField() : void
- buildNotificationSection() : void
- buildNotificationSections() : void
- buildNotificationSwitchField() : void
- buildPrivacyField() : void
- buildProfilePictureField() : mixed
- buildVarNameField() : void
- getDefaultNotificationValue() : array<string|int, mixed>
- getDefaultNotificationValueByChannel() : array<string|int, mixed>
- getDefaultPrivacyValue() : array<string|int, mixed>
- getDefaultValue() : array<string|int, mixed>
- getFieldNameNotification() : string
- getNotificationChannel() : array<string|int, mixed>
- getProfilePrivacy() : array<string|int, mixed>
- getValueNotification() : void
Constants
MODULE_KEY
public
mixed
MODULE_KEY
= 'module_id'
VAR_NAME_KEY
public
mixed
VAR_NAME_KEY
= 'var_name'
Properties
$resource
public
User
$resource
Methods
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
buildRoleField()
protected
buildRoleField() : FormField|null
Return values
FormField|nullgetPasswordValidate()
protected
getPasswordValidate() : StringShape
Return values
StringShapehasRoleField()
protected
hasRoleField() : bool
Return values
boolprepare()
protected
prepare() : void
buildCustomField()
private
buildCustomField() : void
buildModuleField()
private
buildModuleField(Section $basic, array<string|int, mixed> $setting) : void
Parameters
- $basic : Section
- $setting : array<string|int, mixed>
buildNotificationSection()
private
buildNotificationSection(string $channel) : void
Parameters
- $channel : string
buildNotificationSections()
private
buildNotificationSections() : void
buildNotificationSwitchField()
private
buildNotificationSwitchField(Section $basic, array<string|int, mixed> $settings) : void
Parameters
- $basic : Section
- $settings : array<string|int, mixed>
buildPrivacyField()
private
buildPrivacyField() : void
buildProfilePictureField()
private
buildProfilePictureField(Section $basic) : mixed
Parameters
- $basic : Section
buildVarNameField()
private
buildVarNameField(Section $basic, array<string|int, mixed> $setting) : void
Parameters
- $basic : Section
- $setting : array<string|int, mixed>
getDefaultNotificationValue()
private
getDefaultNotificationValue() : array<string|int, mixed>
Return values
array<string|int, mixed>getDefaultNotificationValueByChannel()
private
getDefaultNotificationValueByChannel(string $channel) : array<string|int, mixed>
Parameters
- $channel : string
Return values
array<string|int, mixed>getDefaultPrivacyValue()
private
getDefaultPrivacyValue() : array<string|int, mixed>
Return values
array<string|int, mixed>getDefaultValue()
private
getDefaultValue() : array<string|int, mixed>
Return values
array<string|int, mixed>getFieldNameNotification()
private
getFieldNameNotification(array<string|int, mixed> $setting, string $keyName[, string $name = null ]) : string
Parameters
- $setting : array<string|int, mixed>
- $keyName : string
- $name : string = null
Return values
stringgetNotificationChannel()
private
getNotificationChannel() : array<string|int, mixed>
Return values
array<string|int, mixed>getProfilePrivacy()
private
getProfilePrivacy() : array<string|int, mixed>
Return values
array<string|int, mixed>getValueNotification()
private
getValueNotification(array<string|int, mixed> $params, array<string|int, mixed> &$values, string $key) : void
Parameters
- $params : array<string|int, mixed>
- $values : array<string|int, mixed>
- $key : string