CachingFrameworkGarbageCollectionAdditionalFieldProvider

class \TYPO3\CMS\Scheduler\Task\CachingFrameworkGarbageCollectionAdditionalFieldProvider

Extends
AbstractAdditionalFieldProvider

Additional BE fields for caching framework garbage collection task.

Creates a multi selectbox with all available cache backends to select from.

Table of Contents

Methods

getAdditionalFields()  : array
Add a multi select box with all available cache backends.
saveAdditionalFields()  : mixed
Save selected backends in task object
validateAdditionalFields()  : bool
Checks that all selected backends exist in available backend list
addMessage()  : void
Add a flash message
getCacheBackendOptions()  : string
Build select options of available backends and set currently selected backends
getLanguageService()  : LanguageService|null
getRegisteredBackends()  : array
Get all registered caching framework backends

Methods

getAdditionalFields()

Add a multi select box with all available cache backends.

public getAdditionalFields(array &$taskInfo, CachingFrameworkGarbageCollectionTask|null $task, SchedulerModuleController $schedulerModule) : array

Parameters

$taskInfo : array

Reference to the array containing the info used in the add/edit form

$task : CachingFrameworkGarbageCollectionTask|null

When editing, reference to the current task. NULL when adding.

$schedulerModule : SchedulerModuleController

Reference to the calling object (Scheduler's BE module)

Return values

array —

Array containing all the information pertaining to the additional fields

validateAdditionalFields()

Checks that all selected backends exist in available backend list

public validateAdditionalFields(array &$submittedData, SchedulerModuleController $schedulerModule) : bool

Parameters

$submittedData : array

Reference to the array containing the data submitted by the user

$schedulerModule : SchedulerModuleController

Reference to the calling object (Scheduler's BE module)

Return values

bool —

TRUE if validation was ok (or selected class is not relevant), FALSE otherwise

getCacheBackendOptions()

Build select options of available backends and set currently selected backends

protected getCacheBackendOptions(array $selectedBackends) : string

Parameters

$selectedBackends : array

Selected backends

Return values

string —

HTML of selectbox options

getRegisteredBackends()

Get all registered caching framework backends

protected getRegisteredBackends() : array

Return values

array —

Registered backends

On this page