‪TYPO3CMS  ‪main
TYPO3\CMS\Scheduler\Task\IpAnonymizationTask Class Reference
Inheritance diagram for TYPO3\CMS\Scheduler\Task\IpAnonymizationTask:
TYPO3\CMS\Scheduler\Task\AbstractTask

Public Member Functions

bool execute ()
 
string getAdditionalInformation ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Scheduler\Task\AbstractTask
 __construct ()
 
 setTaskUid ($id)
 
int getTaskUid ()
 
string getTaskTitle ()
 
string getTaskDescription ()
 
string getTaskClassName ()
 
bool isDisabled ()
 
 setDisabled ($flag)
 
 setRunOnNextCronJob ($flag)
 
bool getRunOnNextCronJob ()
 
 setExecutionTime ($timestamp)
 
int null getTaskGroup ()
 
 setTaskGroup ($taskGroup)
 
int getExecutionTime ()
 
 setDescription ($description)
 
string getDescription ()
 
 setScheduler ()
 
 unsetScheduler ()
 
 registerSingleExecution ($timestamp)
 
 registerRecurringExecution ($start, $interval, $end=0, $multiple=false, $cron_cmd='')
 
 setExecution (Execution $execution)
 
Execution object null getExecution ()
 
int getNextDueExecution ()
 
bool areMultipleExecutionsAllowed ()
 
bool save ()
 
 stop ()
 
int getType ()
 

Public Attributes

int $numberOfDays = 180
 
int $mask = 2
 
string $table = ''
 
- ‪Public Attributes inherited from ‪TYPO3\CMS\Scheduler\Task\AbstractTask
const TYPE_SINGLE = 1
 
const TYPE_RECURRING = 2
 

Protected Member Functions

bool handleTable ($table, array $configuration)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Scheduler\Task\AbstractTask
 logException (\Exception $e)
 
 getLanguageService ()
 

Additional Inherited Members

- ‪Protected Attributes inherited from ‪TYPO3\CMS\Scheduler\Task\AbstractTask
TYPO3 CMS Scheduler Scheduler null $scheduler
 
int $taskUid = 0
 
bool $disabled = false
 
bool $runOnNextCronJob = false
 
Execution $execution
 
int $executionTime = 0
 
string $description = ''
 
int null $taskGroup = 0
 

Detailed Description

Anonymize IP addresses in records

This task anonymizes IP addresses in tables older than the given number of days.

Available tables must be registered in $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\TYPO3\CMS\Scheduler\Task\IpAnonymizationTask::class]['options']['tables'] See ext_localconf.php of scheduler extension for an example

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

Definition at line 35 of file IpAnonymizationTask.php.

Member Function Documentation

◆ execute()

bool TYPO3\CMS\Scheduler\Task\IpAnonymizationTask::execute ( )

Execute garbage collection, called by scheduler.

Exceptions

Reimplemented from TYPO3\CMS\Scheduler\Task\AbstractTask.

Definition at line 55 of file IpAnonymizationTask.php.

References $GLOBALS, TYPO3\CMS\Scheduler\Task\IpAnonymizationTask\$table, and TYPO3\CMS\Scheduler\Task\IpAnonymizationTask\handleTable().

◆ getAdditionalInformation()

string TYPO3\CMS\Scheduler\Task\IpAnonymizationTask::getAdditionalInformation ( )

This method returns the selected table as additional information

Returns
‪string Information to display

Reimplemented from TYPO3\CMS\Scheduler\Task\AbstractTask.

Definition at line 143 of file IpAnonymizationTask.php.

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

◆ handleTable()

bool TYPO3\CMS\Scheduler\Task\IpAnonymizationTask::handleTable (   $table,
array  $configuration 
)
protected

Member Data Documentation

◆ $mask

int TYPO3\CMS\Scheduler\Task\IpAnonymizationTask::$mask = 2

mask level see \TYPO3\CMS\Core\Utility\IpAnonymizationUtility::anonymizeIp

Definition at line 43 of file IpAnonymizationTask.php.

◆ $numberOfDays

int TYPO3\CMS\Scheduler\Task\IpAnonymizationTask::$numberOfDays = 180

Number of days

Definition at line 39 of file IpAnonymizationTask.php.

◆ $table

string TYPO3\CMS\Scheduler\Task\IpAnonymizationTask::$table = ''