TableGarbageCollectionAdditionalFieldProvider

class \TYPO3\CMS\Scheduler\Task\TableGarbageCollectionAdditionalFieldProvider

Extends
AbstractAdditionalFieldProvider

Additional BE fields for sys log table garbage collection task.

Table of Contents

Properties

$defaultNumberOfDays  : array

Methods

getAdditionalFields()  : array
Add additional fields
saveAdditionalFields()  : mixed
Save additional field in task
validateAdditionalFields()  : bool
Validate additional fields
validateAllTablesAdditionalField()  : bool
Checks if all table field is correct
validateNumberOfDaysAdditionalField()  : bool
Checks if given number of days is a positive integer
validateTableAdditionalField()  : bool
Checks given table for existence in configuration array
addMessage()  : void
Add a flash message
getAllTablesAdditionalField()  : array
Add a select field of available tables.
getLanguageService()  : LanguageService|null
getNumberOfDaysAdditionalField()  : array
Add an input field to get the number of days.
getTableAdditionalField()  : array
Add a select field of available tables.
initDefaultNumberOfDays()  : mixed
Initialize the default number of days for all configured tables

Properties

$defaultNumberOfDays

protected array $defaultNumberOfDays = []

Default number of days by table

Methods

getAdditionalFields()

Add additional fields

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

Parameters

$taskInfo : array

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

$task : TableGarbageCollectionTask|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()

Validate additional fields

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

validateAllTablesAdditionalField()

Checks if all table field is correct

public validateAllTablesAdditionalField(array &$submittedData) : bool

Parameters

$submittedData : array

Reference to the array containing the data submitted by the user

Return values

bool —

True if data is valid

validateNumberOfDaysAdditionalField()

Checks if given number of days is a positive integer

public validateNumberOfDaysAdditionalField(array &$submittedData) : bool

Parameters

$submittedData : array

Reference to the array containing the data submitted by the user

Return values

bool —

True if validation was ok (or selected class is not relevant), false otherwise

validateTableAdditionalField()

Checks given table for existence in configuration array

public validateTableAdditionalField(array &$submittedData) : bool

Parameters

$submittedData : array

Reference to the array containing the data submitted by the user

Return values

bool —

True if table exists in configuration, false otherwise

getAllTablesAdditionalField()

Add a select field of available tables.

protected getAllTablesAdditionalField(array &$taskInfo, TableGarbageCollectionTask|null $task, SchedulerModuleController $schedulerModule) : array

Parameters

$taskInfo : array

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

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

getNumberOfDaysAdditionalField()

Add an input field to get the number of days.

protected getNumberOfDaysAdditionalField(array &$taskInfo, TableGarbageCollectionTask|null $task, SchedulerModuleController $schedulerModule) : array

Parameters

$taskInfo : array

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

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

getTableAdditionalField()

Add a select field of available tables.

protected getTableAdditionalField(array &$taskInfo, TableGarbageCollectionTask|null $task, SchedulerModuleController $schedulerModule) : array

Parameters

$taskInfo : array

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

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

initDefaultNumberOfDays()

Initialize the default number of days for all configured tables

protected initDefaultNumberOfDays() : mixed
On this page