IpAnonymizationAdditionalFieldProvider

class \TYPO3\CMS\Scheduler\Task\IpAnonymizationAdditionalFieldProvider

Extends
AbstractAdditionalFieldProvider

Additional BE fields for ip address anonymization task.

Table of Contents

Methods

getAdditionalFields()  : array
Add additional fields
saveAdditionalFields()  : mixed
Save additional field in task
validateAdditionalFields()  : bool
Validate additional fields
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
getLanguageService()  : LanguageService
getMaskAdditionalField()  : array
Add an input field to get the mask.
getNumberOfDaysAdditionalField()  : array
Add an input field to get the number of days.
getTableAdditionalField()  : array
Add a select field of available tables.

Methods

getAdditionalFields()

Add additional fields

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

Parameters

$taskInfo : array

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

$task : IpAnonymizationTask|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 additional field in task

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

Parameters

$submittedData : array

Contains data submitted by the user

$task : IpAnonymizationTask

Reference to the current task object

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

validateNumberOfDaysAdditionalField()

Checks if given number of days is a positive integer

public validateNumberOfDaysAdditionalField(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

validateTableAdditionalField()

Checks given table for existence in configuration array

public validateTableAdditionalField(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 table exists in configuration, false otherwise

getMaskAdditionalField()

Add an input field to get the mask.

protected getMaskAdditionalField(array &$taskInfo, IpAnonymizationTask|null $task, SchedulerModuleController $schedulerModule) : array

Parameters

$taskInfo : array

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

$task : IpAnonymizationTask|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, IpAnonymizationTask|null $task, SchedulerModuleController $schedulerModule) : array

Parameters

$taskInfo : array

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

$task : IpAnonymizationTask|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, IpAnonymizationTask|null $task, SchedulerModuleController $schedulerModule) : array

Parameters

$taskInfo : array

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

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

On this page