AccountNotificationSettingForm
extends AbstractForm
in package
Class AccountNotificationSettingForm.
Tags
Table of Contents
Constants
- MODULE_KEY = 'module_id'
- VAR_NAME_KEY = 'var_name'
Properties
Methods
- boot() : void
- initialize() : void
- prepare() : void
- buildModuleField() : void
- buildNotificationSection() : void
- buildNotificationSections() : void
- buildNotificationSwitchField() : void
- buildVarNameField() : void
- getDefaultNotificationValue() : array<string|int, mixed>
- getDefaultNotificationValueByChannel() : array<string|int, mixed>
- getFieldNameNotification() : string
- getNotificationChannel() : 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
initialize()
public
initialize() : void
prepare()
protected
prepare() : 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>
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>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>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