‪TYPO3CMS  ‪main
TYPO3\CMS\Scheduler\Task\IpAnonymizationAdditionalFieldProvider Class Reference
Inheritance diagram for TYPO3\CMS\Scheduler\Task\IpAnonymizationAdditionalFieldProvider:
TYPO3\CMS\Scheduler\AbstractAdditionalFieldProvider TYPO3\CMS\Scheduler\AdditionalFieldProviderInterface

Public Member Functions

array getAdditionalFields (array &$taskInfo, $task, SchedulerModuleController $schedulerModule)
 
bool validateAdditionalFields (array &$submittedData, SchedulerModuleController $schedulerModule)
 
bool validateTableAdditionalField (array &$submittedData, SchedulerModuleController $schedulerModule)
 
bool validateNumberOfDaysAdditionalField (array &$submittedData, SchedulerModuleController $schedulerModule)
 
 saveAdditionalFields (array $submittedData, AbstractTask $task)
 

Protected Member Functions

array getTableAdditionalField (array &$taskInfo, $task, SchedulerModuleController $schedulerModule)
 
array getNumberOfDaysAdditionalField (array &$taskInfo, $task, SchedulerModuleController $schedulerModule)
 
array getMaskAdditionalField (array &$taskInfo, $task, SchedulerModuleController $schedulerModule)
 
 getLanguageService ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Scheduler\AbstractAdditionalFieldProvider
 addMessage (string $message, ContextualFeedbackSeverity $severity=ContextualFeedbackSeverity::OK)
 

Detailed Description

Additional BE fields for ip address anonymization task.

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

Definition at line 28 of file IpAnonymizationAdditionalFieldProvider.php.

Member Function Documentation

◆ getAdditionalFields()

array TYPO3\CMS\Scheduler\Task\IpAnonymizationAdditionalFieldProvider::getAdditionalFields ( array &  $taskInfo,
  $task,
SchedulerModuleController  $schedulerModule 
)

Add additional fields

Parameters
array$taskInfo‪Reference to the array containing the info used in the add/edit form
IpAnonymizationTask | null$task‪When editing, reference to the current task. NULL when adding.
SchedulerModuleController$schedulerModule‪Reference to the calling object (Scheduler's BE module)
Returns
‪array Array containing all the information pertaining to the additional fields

Implements TYPO3\CMS\Scheduler\AdditionalFieldProviderInterface.

Definition at line 38 of file IpAnonymizationAdditionalFieldProvider.php.

References TYPO3\CMS\Scheduler\Task\IpAnonymizationAdditionalFieldProvider\getMaskAdditionalField(), TYPO3\CMS\Scheduler\Task\IpAnonymizationAdditionalFieldProvider\getNumberOfDaysAdditionalField(), and TYPO3\CMS\Scheduler\Task\IpAnonymizationAdditionalFieldProvider\getTableAdditionalField().

◆ getLanguageService()

TYPO3\CMS\Scheduler\Task\IpAnonymizationAdditionalFieldProvider::getLanguageService ( )
protected

◆ getMaskAdditionalField()

array TYPO3\CMS\Scheduler\Task\IpAnonymizationAdditionalFieldProvider::getMaskAdditionalField ( array &  $taskInfo,
  $task,
SchedulerModuleController  $schedulerModule 
)
protected

Add an input field to get the mask.

Parameters
array$taskInfo‪Reference to the array containing the info used in the add/edit form
IpAnonymizationTask | null$task‪When editing, reference to the current task. NULL when adding.
SchedulerModuleController$schedulerModule‪Reference to the calling object (Scheduler's BE module)
Returns
‪array Array containing all the information pertaining to the additional fields

Definition at line 127 of file IpAnonymizationAdditionalFieldProvider.php.

References TYPO3\CMS\Scheduler\Task\IpAnonymizationAdditionalFieldProvider\getLanguageService().

Referenced by TYPO3\CMS\Scheduler\Task\IpAnonymizationAdditionalFieldProvider\getAdditionalFields().

◆ getNumberOfDaysAdditionalField()

array TYPO3\CMS\Scheduler\Task\IpAnonymizationAdditionalFieldProvider::getNumberOfDaysAdditionalField ( array &  $taskInfo,
  $task,
SchedulerModuleController  $schedulerModule 
)
protected

Add an input field to get the number of days.

Parameters
array$taskInfo‪Reference to the array containing the info used in the add/edit form
IpAnonymizationTask | null$task‪When editing, reference to the current task. NULL when adding.
SchedulerModuleController$schedulerModule‪Reference to the calling object (Scheduler's BE module)
Returns
‪array Array containing all the information pertaining to the additional fields

Definition at line 100 of file IpAnonymizationAdditionalFieldProvider.php.

Referenced by TYPO3\CMS\Scheduler\Task\IpAnonymizationAdditionalFieldProvider\getAdditionalFields().

◆ getTableAdditionalField()

array TYPO3\CMS\Scheduler\Task\IpAnonymizationAdditionalFieldProvider::getTableAdditionalField ( array &  $taskInfo,
  $task,
SchedulerModuleController  $schedulerModule 
)
protected

Add a select field of available tables.

Parameters
array$taskInfo‪Reference to the array containing the info used in the add/edit form
IpAnonymizationTask | null$task‪When editing, reference to the current task. NULL when adding.
SchedulerModuleController$schedulerModule‪Reference to the calling object (Scheduler's BE module)
Returns
‪array Array containing all the information pertaining to the additional fields

Definition at line 55 of file IpAnonymizationAdditionalFieldProvider.php.

References $GLOBALS, and TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\getCurrentAction().

Referenced by TYPO3\CMS\Scheduler\Task\IpAnonymizationAdditionalFieldProvider\getAdditionalFields().

◆ saveAdditionalFields()

TYPO3\CMS\Scheduler\Task\IpAnonymizationAdditionalFieldProvider::saveAdditionalFields ( array  $submittedData,
AbstractTask  $task 
)

Save additional field in task

Parameters
array$submittedData‪Contains data submitted by the user
IpAnonymizationTask$task‪Reference to the current task object

Implements TYPO3\CMS\Scheduler\AdditionalFieldProviderInterface.

Definition at line 215 of file IpAnonymizationAdditionalFieldProvider.php.

◆ validateAdditionalFields()

bool TYPO3\CMS\Scheduler\Task\IpAnonymizationAdditionalFieldProvider::validateAdditionalFields ( array &  $submittedData,
SchedulerModuleController  $schedulerModule 
)

Validate additional fields

Parameters
array$submittedData‪Reference to the array containing the data submitted by the user
SchedulerModuleController$schedulerModule‪Reference to the calling object (Scheduler's BE module)
Returns
‪bool True if validation was ok (or selected class is not relevant), false otherwise

Implements TYPO3\CMS\Scheduler\AdditionalFieldProviderInterface.

Definition at line 163 of file IpAnonymizationAdditionalFieldProvider.php.

References TYPO3\CMS\Scheduler\Task\IpAnonymizationAdditionalFieldProvider\validateNumberOfDaysAdditionalField(), and TYPO3\CMS\Scheduler\Task\IpAnonymizationAdditionalFieldProvider\validateTableAdditionalField().

◆ validateNumberOfDaysAdditionalField()

bool TYPO3\CMS\Scheduler\Task\IpAnonymizationAdditionalFieldProvider::validateNumberOfDaysAdditionalField ( array &  $submittedData,
SchedulerModuleController  $schedulerModule 
)

Checks if given number of days is a positive integer

Parameters
array$submittedData‪Reference to the array containing the data submitted by the user
SchedulerModuleController$schedulerModule‪Reference to the calling object (Scheduler's BE module)
Returns
‪bool True if validation was ok (or selected class is not relevant), false otherwise

Definition at line 195 of file IpAnonymizationAdditionalFieldProvider.php.

References TYPO3\CMS\Scheduler\AbstractAdditionalFieldProvider\addMessage(), and TYPO3\CMS\Scheduler\Task\IpAnonymizationAdditionalFieldProvider\getLanguageService().

Referenced by TYPO3\CMS\Scheduler\Task\IpAnonymizationAdditionalFieldProvider\validateAdditionalFields().

◆ validateTableAdditionalField()

bool TYPO3\CMS\Scheduler\Task\IpAnonymizationAdditionalFieldProvider::validateTableAdditionalField ( array &  $submittedData,
SchedulerModuleController  $schedulerModule 
)

Checks given table for existence in configuration array

Parameters
array$submittedData‪Reference to the array containing the data submitted by the user
SchedulerModuleController$schedulerModule‪Reference to the calling object (Scheduler's BE module)
Returns
‪bool True if table exists in configuration, false otherwise

Definition at line 176 of file IpAnonymizationAdditionalFieldProvider.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Scheduler\Task\IpAnonymizationAdditionalFieldProvider\validateAdditionalFields().