TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
SleepTaskAdditionalFieldProvider Class Reference
Inheritance diagram for SleepTaskAdditionalFieldProvider:
AdditionalFieldProviderInterface

Public Member Functions

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

Detailed Description

Additional fields provider class for usage with the Scheduler's sleep task

Definition at line 22 of file SleepTaskAdditionalFieldProvider.php.

Member Function Documentation

getAdditionalFields ( array &  $taskInfo,
  $task,
\TYPO3\CMS\Scheduler\Controller\SchedulerModuleController  $parentObject 
)

This method is used to define new fields for adding or editing a task In this case, it adds an sleep time field

Parameters
array$taskInfoReference to the array containing the info used in the add/edit form
AbstractTask | NULL$taskWhen editing, reference to the current task. NULL when adding.
\TYPO3\CMS\Scheduler\Controller\SchedulerModuleController$parentObjectReference to the calling object (Scheduler's BE module)
Returns
array Array containing all the information pertaining to the additional fields

Implements AdditionalFieldProviderInterface.

Definition at line 33 of file SleepTaskAdditionalFieldProvider.php.

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

This method is used to save any additional input into the current task object if the task class matches

Parameters
array$submittedDataArray containing the data submitted by the user
\TYPO3\CMS\Scheduler\Task\AbstractTask$taskReference to the current task object
Returns
void

Definition at line 89 of file SleepTaskAdditionalFieldProvider.php.

validateAdditionalFields ( array &  $submittedData,
\TYPO3\CMS\Scheduler\Controller\SchedulerModuleController  $parentObject 
)

This method checks any additional data that is relevant to the specific task If the task class is not relevant, the method is expected to return TRUE

Parameters
array$submittedDataReference to the array containing the data submitted by the user
\TYPO3\CMS\Scheduler\Controller\SchedulerModuleController$parentObjectReference to the calling object (Scheduler's BE module)
Returns
bool TRUE if validation was ok (or selected class is not relevant), FALSE otherwise

Implements AdditionalFieldProviderInterface.

Definition at line 69 of file SleepTaskAdditionalFieldProvider.php.

References $GLOBALS.