TYPO3
7.6
|
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) | |
Interface for classes who want to provide additional fields when adding a task
Definition at line 20 of file AdditionalFieldProviderInterface.php.
getAdditionalFields | ( | array & | $taskInfo, |
$task, | |||
\TYPO3\CMS\Scheduler\Controller\SchedulerModuleController | $schedulerModule | ||
) |
Gets additional fields to render in the form to add/edit a task
array | $taskInfo | Values of the fields from the add/edit task form |
\TYPO3\CMS\Scheduler\Task\AbstractTask | $task | The task object being edited. Null when adding a task! |
\TYPO3\CMS\Scheduler\Controller\SchedulerModuleController | $schedulerModule | Reference to the scheduler backend module |
Implemented in SleepTaskAdditionalFieldProvider, and TestTaskAdditionalFieldProvider.
saveAdditionalFields | ( | array | $submittedData, |
\TYPO3\CMS\Scheduler\Task\AbstractTask | $task | ||
) |
Takes care of saving the additional fields' values in the task's object
array | $submittedData | An array containing the data submitted by the add/edit task form |
\TYPO3\CMS\Scheduler\Task\AbstractTask | $task | Reference to the scheduler backend module |
validateAdditionalFields | ( | array & | $submittedData, |
\TYPO3\CMS\Scheduler\Controller\SchedulerModuleController | $schedulerModule | ||
) |
Validates the additional fields' values
array | $submittedData | An array containing the data submitted by the add/edit task form |
\TYPO3\CMS\Scheduler\Controller\SchedulerModuleController | $schedulerModule | Reference to the scheduler backend module |
Implemented in SleepTaskAdditionalFieldProvider, and TestTaskAdditionalFieldProvider.