OptimizeDatabaseTableAdditionalFieldProvider

class \TYPO3\CMS\Scheduler\Task\OptimizeDatabaseTableAdditionalFieldProvider

Extends
AbstractAdditionalFieldProvider

Additional BE fields for optimize database table task.

Table of Contents

Properties

$languageFile  : string

Methods

getAdditionalFields()  : array
Add a multi select box with all available database tables.
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
getDatabaseTableOptions()  : string
Build select options of available backends and set currently selected backends
getLanguageService()  : LanguageService|null
getOptimizableTables()  : array
Get all tables that are capable of optimization
getOptimizableTablesForConnection()  : array
Retrieve all optimizable tables for a connection, optionally restricted to the subset of table names in the $tableNames array.

Properties

$languageFile

protected string $languageFile = 'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf'

Methods

getAdditionalFields()

Add a multi select box with all available database tables.

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

Parameters

$taskInfo : array

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

$task : OptimizeDatabaseTableTask|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

saveAdditionalFields()

Save selected backends in task object

public saveAdditionalFields(array $submittedData, OptimizeDatabaseTableTask $task) : mixed

Parameters

$submittedData : array

Contains data submitted by the user

$task : OptimizeDatabaseTableTask

Reference to the current task object

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

getDatabaseTableOptions()

Build select options of available backends and set currently selected backends

protected getDatabaseTableOptions(array $selectedTables) : string

Parameters

$selectedTables : array

Selected backends

Return values

string —

HTML of selectbox options

getOptimizableTables()

Get all tables that are capable of optimization

protected getOptimizableTables() : array

Return values

array —

Names of table that can be optimized.

getOptimizableTablesForConnection()

Retrieve all optimizable tables for a connection, optionally restricted to the subset of table names in the $tableNames array.

protected getOptimizableTablesForConnection(Connection $connection[, array $tableNames = [] ]) : array

Parameters

$connection : Connection
$tableNames : array = []

Return values

array
On this page