29 protected $fields = array(
'notificationEmail');
46 public function getAdditionalFields(array &$taskInfo, $task, \
TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $schedulerModule) {
47 $fields = array(
'notificationEmail' =>
'textarea');
48 if ($schedulerModule->CMD ==
'edit') {
49 $taskInfo[$this->fieldPrefix .
'NotificationEmail'] = $task->getNotificationEmail();
53 $fieldId =
'task_' . $fieldName;
54 $fieldHtml =
'<textarea ' .
'rows="5" cols="50" name="tx_scheduler[' . $fieldName .
']" ' .
'id="' . $fieldId .
'" ' .
'>' . htmlspecialchars($taskInfo[$fieldName]) .
'</textarea>';
56 $additionalFields = array();
57 $additionalFields[$fieldId] = array(
59 'label' =>
'LLL:EXT:reports/reports/locallang.xlf:status_updateTaskField_notificationEmails',
61 'cshLabel' => $fieldId
64 return $additionalFields;
77 foreach ($notificationEmails as $notificationEmail) {
78 if (!\
TYPO3\CMS\Core\Utility\GeneralUtility::validEmail($notificationEmail)) {
83 if (empty($submittedData[$this->fieldPrefix .
'NotificationEmail']) || !$validInput) {
84 $schedulerModule->addMessage(
$GLOBALS[
'LANG']->sL(
'LLL:EXT:reports/reports/locallang.xlf:status_updateTaskField_notificationEmails_invalid'), \
TYPO3\CMS\Core\Messaging\FlashMessage::ERROR);
99 throw new \InvalidArgumentException(
'Expected a task of type TYPO3\\CMS\\Reports\\Task\\SystemStatusUpdateTask, but got ' . get_class($task), 1295012802);
101 $task->setNotificationEmail($submittedData[$this->fieldPrefix .
'NotificationEmail']);
111 return $this->fieldPrefix . ucfirst($fieldName);
getAdditionalFields(array &$taskInfo, $task, \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $schedulerModule)
validateAdditionalFields(array &$submittedData, \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $schedulerModule)
static trimExplode($delim, $string, $removeEmptyValues=FALSE, $limit=0)
saveAdditionalFields(array $submittedData, \TYPO3\CMS\Scheduler\Task\AbstractTask $task)
getFullFieldName($fieldName)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]