RecyclerGarbageCollectionAdditionalFieldProvider extends AbstractAdditionalFieldProvider

Additional BE fields for recycler garbage collection task.

Creates an integer input field for difference between scheduler run time and file modification time in days to select from.

Internal

This class is a specific scheduler task implementation is not considered part of the Public TYPO3 API.

Table of Contents

Properties

$defaultNumberOfDays  : int
Default period in days to remove a recycled file

Methods

getAdditionalFields()  : array<string|int, mixed>
Add an integer input field for difference between scheduler run time and file modification time in days to select from
saveAdditionalFields()  : mixed
Saves given integer value in task object
validateAdditionalFields()  : bool
Checks if the given value is an integer
addMessage()  : void
Add a flash message
getLanguageService()  : LanguageService|null

Properties

$defaultNumberOfDays

Default period in days to remove a recycled file

protected int $defaultNumberOfDays = 30

Default number of days

Methods

getAdditionalFields()

Add an integer input field for difference between scheduler run time and file modification time in days to select from

public getAdditionalFields(array<string|int, mixed> &$taskInfo, RecyclerGarbageCollectionTask|null $task, SchedulerModuleController $schedulerModule) : array<string|int, mixed>
Parameters
$taskInfo : array<string|int, mixed>

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

$task : RecyclerGarbageCollectionTask|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<string|int, mixed>

Array containing all the information pertaining to the additional fields

saveAdditionalFields()

Saves given integer value in task object

public saveAdditionalFields(array<string|int, mixed> $submittedData, RecyclerGarbageCollectionTask $task) : mixed
Parameters
$submittedData : array<string|int, mixed>

Contains data submitted by the user

$task : RecyclerGarbageCollectionTask

Reference to the current task object

validateAdditionalFields()

Checks if the given value is an integer

public validateAdditionalFields(array<string|int, mixed> &$submittedData, SchedulerModuleController $schedulerModule) : bool
Parameters
$submittedData : array<string|int, mixed>

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

addMessage()

Add a flash message

protected addMessage(string $message[, ContextualFeedbackSeverity $severity = ContextualFeedbackSeverity::OK ]) : void
Parameters
$message : string

the flash message content

$severity : ContextualFeedbackSeverity = ContextualFeedbackSeverity::OK

the flash message severity


        
On this page

Search results