52 $tableConfigurations =
$GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
'scheduler'][
'tasks'][
'TYPO3\\CMS\\Scheduler\\Task\\TableGarbageCollectionTask'][
'options'][
'tables'];
53 $tableHandled = FALSE;
54 foreach ($tableConfigurations as $tableName => $configuration) {
55 if ($this->allTables || $tableName === $this->table) {
61 throw new \RuntimeException(
'TYPO3\\CMS\\Scheduler\\Task\\TableGarbageCollectionTask misconfiguration: ' . $this->table .
' does not exist in configuration', 1308354399);
75 if (!empty($configuration[
'expireField'])) {
76 $field = $configuration[
'expireField'];
80 $where = $field .
' <= \'' . $dateLimit .
'\' AND
' . $field . ' > \
'0\'';
81 } elseif (!empty($configuration[
'dateField'])) {
82 if (!$this->allTables) {
83 $deleteTimestamp = strtotime(
'-' . $this->numberOfDays .
'days');
85 if (!isset($configuration[
'expirePeriod'])) {
86 throw new \RuntimeException(
'TYPO3\\CMS\\Scheduler\\Task\\TableGarbageCollectionTask misconfiguration: No expirePeriod defined for table ' .
$table, 1308355095);
88 $deleteTimestamp = strtotime(
'-' . $configuration[
'expirePeriod'] .
'days');
90 $where = $configuration[
'dateField'] .
' < ' . $deleteTimestamp;
92 throw new \RuntimeException(
'TYPO3\\CMS\\Scheduler\\Task\\TableGarbageCollectionTask misconfiguration: Either expireField or dateField must be defined for table ' .
$table, 1308355268);
95 $error =
$GLOBALS[
'TYPO3_DB']->sql_error();
97 throw new \RuntimeException(
'TYPO3\\CMS\\Scheduler\\Task\\TableGarbageCollectionTask failed for table ' . $this->table .
' with error: ' . $error, 1308255491);
108 if ($this->allTables) {
109 $message =
$GLOBALS[
'LANG']->sL(
'LLL:EXT:scheduler/mod1/locallang.xlf:label.tableGarbageCollection.additionalInformationAllTables');
111 $message = sprintf(
$GLOBALS[
'LANG']->sL(
'LLL:EXT:scheduler/mod1/locallang.xlf:label.tableGarbageCollection.additionalInformationTable'), $this->table);
getAdditionalInformation()
handleTable($table, array $configuration)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]