MetaFox

AccountSettingForm extends AbstractForm
in package
Uses GenderTrait

Class AccountSettingForm.

Tags
driverType

form

driverName

user.update

SuppressWarnings

(PHPMD.CouplingBetweenObjects)

SuppressWarnings

(PHPMD.ExcessiveMethodLength)

Table of Contents

Constants

MODULE_KEY  = 'module_id'
VAR_NAME_KEY  = 'var_name'

Properties

$resource  : User

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

Properties

Methods

buildRoleField()

protected buildRoleField() : FormField|null
Return values
FormField|null

getPasswordValidate()

protected getPasswordValidate() : StringShape
Return values
StringShape

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

buildNotificationSwitchField()

private buildNotificationSwitchField(Section $basic, array<string|int, mixed> $settings) : void
Parameters
$basic : Section
$settings : array<string|int, mixed>

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
string

getNotificationChannel()

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

        
On this page

Search results