TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SystemStatusUpdateTaskNotificationEmailField Class Reference
Inheritance diagram for SystemStatusUpdateTaskNotificationEmailField:
AdditionalFieldProviderInterface

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 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

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

Definition at line 21 of file SystemStatusUpdateTaskNotificationEmailField.php.

Member Function Documentation

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 45 of file SystemStatusUpdateTaskNotificationEmailField.php.

References SystemStatusUpdateTaskNotificationEmailField\$fields, and SystemStatusUpdateTaskNotificationEmailField\getFullFieldName().

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 112 of file SystemStatusUpdateTaskNotificationEmailField.php.

Referenced by SystemStatusUpdateTaskNotificationEmailField\getAdditionalFields().

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 98 of file SystemStatusUpdateTaskNotificationEmailField.php.

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
bool TRUE if validation was ok (or selected class is not relevant), FALSE otherwise

Definition at line 74 of file SystemStatusUpdateTaskNotificationEmailField.php.

References $GLOBALS, and GeneralUtility\validEmail().

Member Data Documentation

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