2 namespace TYPO3\CMS\Recycler\Task;
49 foreach ($tables as $table) {
66 $queryParts = array();
67 if (isset(
$GLOBALS[
'TCA'][$tableName][
'ctrl'][
'delete'])) {
68 $queryParts[] =
$GLOBALS[
'TCA'][$tableName][
'ctrl'][
'delete'] .
' = 1';
69 if (
$GLOBALS[
'TCA'][$tableName][
'ctrl'][
'tstamp']) {
71 $queryParts[] =
$GLOBALS[
'TCA'][$tableName][
'ctrl'][
'tstamp'] .
' < ' . $dateBefore;
73 $where = implode(
' AND ', $queryParts);
93 $this->
getLanguageService()->sL(
'LLL:EXT:recycler/Resources/Private/Language/locallang_tasks.xlf:cleanerTaskDescriptionTables'),
100 $this->
getLanguageService()->sL(
'LLL:EXT:recycler/Resources/Private/Language/locallang_tasks.xlf:cleanerTaskDescriptionDays'),
132 return strtotime(
'-' . $this->
getPeriod() .
' days');
173 if (!empty($fieldList)) {
189 implode(
',', $fieldList),
193 foreach ($rows as $row) {
194 foreach ($fieldList as $fieldName) {
195 $uploadDir = PATH_site .
$GLOBALS[
'TCA'][$table][
'columns'][$fieldName][
'config'][
'uploadfolder'] .
'/';
197 foreach ($fileList as $fileName) {
198 @unlink($uploadDir . $fileName);
213 if (isset(
$GLOBALS[
'TCA'][$table][
'columns'])) {
214 foreach (
$GLOBALS[
'TCA'][$table][
'columns'] as $fieldName => $fieldConfiguration) {
215 if ($fieldConfiguration[
'config'][
'type'] ===
'group'
216 && $fieldConfiguration[
'config'][
'internal_type'] ===
'file'
218 $result[] = $fieldName;
231 if ($this->databaseConnection === null) {
232 $this->databaseConnection =
$GLOBALS[
'TYPO3_DB'];