TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Reports\Task\SystemStatusUpdateTaskNotificationEmailField Class Reference
Inheritance diagram for TYPO3\CMS\Reports\Task\SystemStatusUpdateTaskNotificationEmailField:
TYPO3\CMS\Scheduler\AdditionalFieldProviderInterface tx_reports_tasks_SystemStatusUpdateTaskNotificationEmailField

Public Member Functions

 getAdditionalFields (array &$taskInfo, $task, \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $schedulerModule)
 
 validateAdditionalFields (array &$submittedData, \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $schedulerModule)
 
 saveAdditionalFields (array $submittedData, \TYPO3\CMS\Scheduler\Task\AbstractTask $task)
 
- Public Member Functions inherited from TYPO3\CMS\Scheduler\AdditionalFieldProviderInterface
 getAdditionalFields (array &$taskInfo, $task, \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $schedulerModule)
 
 validateAdditionalFields (array &$submittedData, \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $schedulerModule)
 
 saveAdditionalFields (array $submittedData, \TYPO3\CMS\Scheduler\Task\AbstractTask $task)
 

Protected Member Functions

 getFullFieldName ($fieldName)
 

Protected Attributes

 $fields = array('notificationEmail')
 
 $fieldPrefix = 'SystemStatusUpdate'
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Additional field to set the notification email address(es) for system health issue notifications.

Author
Ingo Renner ingo@.nosp@m.typo.nosp@m.3.org

Definition at line 22 of file SystemStatusUpdateTaskNotificationEmailField.php.

Member Function Documentation

◆ getAdditionalFields()

TYPO3\CMS\Reports\Task\SystemStatusUpdateTaskNotificationEmailField::getAdditionalFields ( array &  $taskInfo,
  $task,
\TYPO3\CMS\Scheduler\Controller\SchedulerModuleController  $schedulerModule 
)

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

Parameters
array$taskInfoValues of the fields from the add/edit task form
\TYPO3\CMS\Scheduler\Task\AbstractTask$taskThe task object being edited. Null when adding a task!
\TYPO3\CMS\Scheduler\Controller\SchedulerModuleController$schedulerModuleReference to the scheduler backend module
Returns
array A two dimensional array, array('Identifier' => array('fieldId' => array('code' => '', 'label' => '', 'cshKey' => '', 'cshLabel' => ''))

Definition at line 46 of file SystemStatusUpdateTaskNotificationEmailField.php.

References TYPO3\CMS\Reports\Task\SystemStatusUpdateTaskNotificationEmailField\$fields, and TYPO3\CMS\Reports\Task\SystemStatusUpdateTaskNotificationEmailField\getFullFieldName().

◆ getFullFieldName()

TYPO3\CMS\Reports\Task\SystemStatusUpdateTaskNotificationEmailField::getFullFieldName (   $fieldName)
protected

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

Parameters
string$fieldNameA raw field name
Returns
string Field name ready to use in HTML markup

Definition at line 110 of file SystemStatusUpdateTaskNotificationEmailField.php.

Referenced by TYPO3\CMS\Reports\Task\SystemStatusUpdateTaskNotificationEmailField\getAdditionalFields().

◆ saveAdditionalFields()

TYPO3\CMS\Reports\Task\SystemStatusUpdateTaskNotificationEmailField::saveAdditionalFields ( array  $submittedData,
\TYPO3\CMS\Scheduler\Task\AbstractTask  $task 
)

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

Parameters
array$submittedDataAn array containing the data submitted by the add/edit task form
\TYPO3\CMS\Scheduler\Task\AbstractTask$taskReference to the scheduler backend module
Returns
void

Definition at line 97 of file SystemStatusUpdateTaskNotificationEmailField.php.

◆ validateAdditionalFields()

TYPO3\CMS\Reports\Task\SystemStatusUpdateTaskNotificationEmailField::validateAdditionalFields ( array &  $submittedData,
\TYPO3\CMS\Scheduler\Controller\SchedulerModuleController  $schedulerModule 
)

Validates the additional fields' values

Parameters
array$submittedDataAn array containing the data submitted by the add/edit task form
\TYPO3\CMS\Scheduler\Controller\SchedulerModuleController$schedulerModuleReference to the scheduler backend module
Returns
boolean TRUE if validation was ok (or selected class is not relevant), FALSE otherwise

Definition at line 74 of file SystemStatusUpdateTaskNotificationEmailField.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

Member Data Documentation

◆ $fieldPrefix

TYPO3\CMS\Reports\Task\SystemStatusUpdateTaskNotificationEmailField::$fieldPrefix = 'SystemStatusUpdate'
protected

◆ $fields

TYPO3\CMS\Reports\Task\SystemStatusUpdateTaskNotificationEmailField::$fields = array('notificationEmail')
protected