TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Scheduler\Task\CachingFrameworkGarbageCollectionAdditionalFieldProvider Class Reference
Inheritance diagram for TYPO3\CMS\Scheduler\Task\CachingFrameworkGarbageCollectionAdditionalFieldProvider:
TYPO3\CMS\Scheduler\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 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

 getCacheBackendOptions (array $selectedBackends)
 
 getRegisteredBackends ()
 

Detailed Description

Additional BE fields for caching framework garbage collection task. Creates a multi selectbox with all available cache backends to select from.

Definition at line 21 of file CachingFrameworkGarbageCollectionAdditionalFieldProvider.php.

Member Function Documentation

◆ getAdditionalFields()

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

Add a multi select box with all available cache backends.

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

Definition at line 31 of file CachingFrameworkGarbageCollectionAdditionalFieldProvider.php.

References TYPO3\CMS\Scheduler\Task\CachingFrameworkGarbageCollectionAdditionalFieldProvider\getCacheBackendOptions(), and TYPO3\CMS\Scheduler\Task\CachingFrameworkGarbageCollectionAdditionalFieldProvider\getRegisteredBackends().

◆ getCacheBackendOptions()

TYPO3\CMS\Scheduler\Task\CachingFrameworkGarbageCollectionAdditionalFieldProvider::getCacheBackendOptions ( array  $selectedBackends)
protected

Build select options of available backends and set currently selected backends

Parameters
array$selectedBackendsSelected backends
Returns
string HTML of selectbox options

Definition at line 101 of file CachingFrameworkGarbageCollectionAdditionalFieldProvider.php.

References TYPO3\CMS\Scheduler\Task\CachingFrameworkGarbageCollectionAdditionalFieldProvider\getRegisteredBackends().

Referenced by TYPO3\CMS\Scheduler\Task\CachingFrameworkGarbageCollectionAdditionalFieldProvider\getAdditionalFields().

◆ getRegisteredBackends()

TYPO3\CMS\Scheduler\Task\CachingFrameworkGarbageCollectionAdditionalFieldProvider::getRegisteredBackends ( )
protected

◆ saveAdditionalFields()

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

Save selected backends in task object

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

Definition at line 90 of file CachingFrameworkGarbageCollectionAdditionalFieldProvider.php.

◆ validateAdditionalFields()

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

Checks that all selected backends exist in available backend list

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

Definition at line 66 of file CachingFrameworkGarbageCollectionAdditionalFieldProvider.php.

References $GLOBALS, and TYPO3\CMS\Scheduler\Task\CachingFrameworkGarbageCollectionAdditionalFieldProvider\getRegisteredBackends().