TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Linkvalidator\Task\ValidatorTaskAdditionalFieldProvider Class Reference
Inheritance diagram for TYPO3\CMS\Linkvalidator\Task\ValidatorTaskAdditionalFieldProvider:
TYPO3\CMS\Scheduler\AdditionalFieldProviderInterface tx_linkvalidator_tasks_ValidatorAdditionalFieldProvider

Public Member Functions

 getAdditionalFields (array &$taskInfo, $task, \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $schedulerModule)
 
 validateAdditionalFields (array &$submittedData, \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $schedulerModule)
 
- 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

 getSelectedState (array $configurationArray, $currentValue)
 

Detailed Description

This class provides Scheduler Additional Field plugin implementation

Author
Dimitri König dk@ca.nosp@m.bag..nosp@m.ch
Michael Miousse micha.nosp@m.el.m.nosp@m.iouss.nosp@m.e@in.nosp@m.foglo.nosp@m.be.c.nosp@m.a

Definition at line 25 of file ValidatorTaskAdditionalFieldProvider.php.

Member Function Documentation

◆ getAdditionalFields()

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

Render additional information fields within the scheduler backend.

Parameters
array$taskInfoArray information of task to return
ValidatorTask$taskTask object
\TYPO3\CMS\Scheduler\Controller\SchedulerModuleController$schedulerModuleReference to the BE module of the Scheduler
Returns
array Additional fields
See also
->getAdditionalFields($taskInfo, $task, $schedulerModule)

Definition at line 36 of file ValidatorTaskAdditionalFieldProvider.php.

References $GLOBALS, and TYPO3\CMS\Backend\Utility\BackendUtility\wrapInHelp().

◆ getSelectedState()

TYPO3\CMS\Linkvalidator\Task\ValidatorTaskAdditionalFieldProvider::getSelectedState ( array  $configurationArray,
  $currentValue 
)
protected

Mark current value as selected by returning the "selected" attribute

Parameters
array$configurationArrayArray of configuration
string$currentValueValue of selector object
Returns
string Html fragment for a selected option or empty

Definition at line 169 of file ValidatorTaskAdditionalFieldProvider.php.

◆ validateAdditionalFields()

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

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$schedulerModuleReference to the BE module of the Scheduler
Returns
boolean TRUE if validation was ok (or selected class is not relevant), FALSE otherwise

Definition at line 185 of file ValidatorTaskAdditionalFieldProvider.php.

References $GLOBALS, TYPO3\CMS\Scheduler\AdditionalFieldProviderInterface\saveAdditionalFields(), TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode(), and TYPO3\CMS\Core\Utility\GeneralUtility\validEmail().