TYPO3 v15 dev-main snapshot ()
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
use TYPO3\CMS\Core\Information\Typo3Version;
|
||||
use TYPO3\CMS\Scheduler\Task\TableGarbageCollectionTask;
|
||||
|
||||
if ((new Typo3Version())->getMajorVersion() < 14) {
|
||||
// TODO: Remove once TYPO3 13 support is dropped
|
||||
// TYPO3 14 configuration can be found in Configuration/TCA/Overrides/tx_scheduler_garbage_collection.php
|
||||
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][TableGarbageCollectionTask::class]['options']['tables']['tx_myextension_errorlog'] = [
|
||||
'dateField' => 'tstamp',
|
||||
'expirePeriod' => '180',
|
||||
];
|
||||
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][TableGarbageCollectionTask::class]['options']['tables']['tx_myextension_uniqalias'] = [
|
||||
'expireField' => 'expire',
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
use TYPO3\CMS\Core\Information\Typo3Version;
|
||||
use TYPO3\CMS\Scheduler\Task\IpAnonymizationTask;
|
||||
|
||||
if ((new Typo3Version())->getMajorVersion() < 14) {
|
||||
// TODO: Remove once TYPO3 13 support is dropped
|
||||
// TYPO3 14 configuration can be found in Configuration/TCA/Overrides/tx_scheduler_ip_anonymization.php
|
||||
$garbageCollectionTables =& $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][IpAnonymizationTask::class]['options']['tables'];
|
||||
|
||||
$garbageCollectionTables = array_replace($garbageCollectionTables ?? [], [
|
||||
'tx_myextension_my_table' => [
|
||||
'dateField' => 'tstamp',
|
||||
'ipField' => 'private_ip',
|
||||
],
|
||||
]);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
use TYPO3\CMS\Scheduler\Task\TableGarbageCollectionTask;
|
||||
|
||||
if (isset($GLOBALS['TCA']['tx_scheduler_task'])) {
|
||||
$garbageCollectionTables =& $GLOBALS['TCA']['tx_scheduler_task']['types'][TableGarbageCollectionTask::class]['taskOptions']['tables'];
|
||||
|
||||
$garbageCollectionTables = array_replace($garbageCollectionTables ?? [], [
|
||||
'tx_myextension_my_table' => [
|
||||
'dateField' => 'tstamp',
|
||||
'expirePeriod' => 180,
|
||||
],
|
||||
'tx_myextension_my_other_table' => [
|
||||
'expireField' => 'expire',
|
||||
],
|
||||
]);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
use TYPO3\CMS\Scheduler\Task\IpAnonymizationTask;
|
||||
|
||||
if (isset($GLOBALS['TCA']['tx_scheduler_task'])) {
|
||||
$garbageCollectionTables =& $GLOBALS['TCA']['tx_scheduler_task']['types'][IpAnonymizationTask::class]['taskOptions']['tables'];
|
||||
|
||||
$garbageCollectionTables = array_replace($garbageCollectionTables ?? [], [
|
||||
'tx_myextension_my_table' => [
|
||||
'dateField' => 'tstamp',
|
||||
'ipField' => 'private_ip',
|
||||
],
|
||||
]);
|
||||
}
|
||||
Reference in New Issue
Block a user