SystemStatusUpdateTaskNotificationEmailField extends AbstractAdditionalFieldProvider

Additional field to set the notification email address(es) for system health issue notifications.

Internal

This class is a specific scheduler task implementation and is not considered part of the Public TYPO3 API.

Table of Contents

Properties

$fieldPrefix  : string
Field prefix.
$fields  : array
Additional fields

Methods

getAdditionalFields()  : array
Gets additional fields to render in the form to add/edit a task
saveAdditionalFields()  : mixed
Takes care of saving the additional fields' values in the task's object
validateAdditionalFields()  : bool
Validates the additional fields' values
addMessage()  : void
Add a flash message
getFullFieldName()  : string
Constructs the full field name which can be used in HTML markup.
getLanguageService()  : LanguageService

Properties

$fieldPrefix

Field prefix.

protected string $fieldPrefix = 'SystemStatusUpdate'

$fields

Additional fields

protected array $fields = ['notificationEmail', 'notificationAll']

Methods

getAdditionalFields()

Gets additional fields to render in the form to add/edit a task

public getAdditionalFields(array &$taskInfo, SystemStatusUpdateTask|null $task, SchedulerModuleController $schedulerModule) : array
Parameters
$taskInfo : array

Values of the fields from the add/edit task form

$task : SystemStatusUpdateTask|null

When editing, reference to the current task. NULL when adding.

$schedulerModule : SchedulerModuleController

Reference to the scheduler backend module

Return values
array —

A two dimensional array, array('Identifier' => array('fieldId' => array('code' => '', 'label' => '', 'cshKey' => '', 'cshLabel' => ''))

saveAdditionalFields()

Takes care of saving the additional fields' values in the task's object

public saveAdditionalFields(array $submittedData, SystemStatusUpdateTask $task) : mixed
Parameters
$submittedData : array

An array containing the data submitted by the add/edit task form

$task : SystemStatusUpdateTask

Reference to the scheduler backend module

Tags
throws
InvalidArgumentException

validateAdditionalFields()

Validates the additional fields' values

public validateAdditionalFields(array &$submittedData, SchedulerModuleController $schedulerModule) : bool
Parameters
$submittedData : array

An array containing the data submitted by the add/edit task form

$schedulerModule : SchedulerModuleController

Reference to the scheduler backend module

Return values
bool —

TRUE if validation was ok (or selected class is not relevant), FALSE otherwise

addMessage()

Add a flash message

protected addMessage(string $message[, int $severity = FlashMessage::OK ]) : void
Parameters
$message : string

the flash message content

$severity : int = FlashMessage::OK

the flash message severity

getFullFieldName()

Constructs the full field name which can be used in HTML markup.

protected getFullFieldName(string $fieldName) : string
Parameters
$fieldName : string

A raw field name

Return values
string —

Field name ready to use in HTML markup

On this page

Search results