![]() |
TYPO3
7.6
|
Public Member Functions | |
execute () | |
getAdditionalInformation () | |
setPeriod ($period) | |
getPeriod () | |
getPeriodAsTimestamp () | |
setTcaTables ($tcaTables=array()) | |
getTcaTables () | |
setDatabaseConnection ($databaseConnection) | |
![]() | |
__construct () | |
execute () | |
getAdditionalInformation () | |
setTaskUid ($id) | |
getTaskUid () | |
getTaskTitle () | |
getTaskDescription () | |
getTaskClassName () | |
isDisabled () | |
setDisabled ($flag) | |
setExecutionTime ($timestamp) | |
getTaskGroup () | |
setTaskGroup ($taskGroup) | |
getExecutionTime () | |
setDescription ($description) | |
getDescription () | |
setScheduler () | |
unsetScheduler () | |
setExecution (\TYPO3\CMS\Scheduler\Execution $execution) | |
getExecution () | |
getNextDueExecution () | |
areMultipleExecutionsAllowed () | |
isExecutionRunning () | |
markExecution () | |
unmarkExecution ($executionID,\Exception $failure=null) | |
unmarkAllExecutions () | |
save () | |
stop () | |
remove () | |
Protected Member Functions | |
cleanTable ($tableName) | |
checkFileResourceFieldsBeforeDeletion ($table, $where) | |
deleteFilesForTable ($table, $where, array $fieldList) | |
getFileResourceFields ($table) | |
getDatabaseConnection () | |
getLanguageService () | |
Protected Attributes | |
$period = 0 | |
$tcaTables = array() | |
$databaseConnection = null | |
![]() | |
$scheduler | |
$taskUid | |
$disabled = false | |
$execution | |
$executionTime = 0 | |
$description = '' | |
$taskGroup | |
A task that should be run regularly that deletes deleted datasets from the DB.
Definition at line 22 of file CleanerTask.php.
|
protected |
Checks if the table has fields for uploaded files and removes those files.
string | $table | |
string | $where |
Definition at line 170 of file CleanerTask.php.
References CleanerTask\deleteFilesForTable(), and CleanerTask\getFileResourceFields().
Referenced by CleanerTask\cleanTable().
|
protected |
Executes the delete-query for the given table
string | $tableName |
Definition at line 64 of file CleanerTask.php.
References $GLOBALS, CleanerTask\checkFileResourceFieldsBeforeDeletion(), CleanerTask\getDatabaseConnection(), and CleanerTask\getPeriodAsTimestamp().
Referenced by CleanerTask\execute().
|
protected |
Removes all files from the given field list in the table.
string | $table | |
string | $where | |
array | $fieldList |
Definition at line 186 of file CleanerTask.php.
References $GLOBALS, CleanerTask\getDatabaseConnection(), and GeneralUtility\trimExplode().
Referenced by CleanerTask\checkFileResourceFieldsBeforeDeletion().
execute | ( | ) |
The main method of the task. Iterates through the tables and calls the cleaning function
Definition at line 45 of file CleanerTask.php.
References CleanerTask\cleanTable(), and CleanerTask\getTcaTables().
getAdditionalInformation | ( | ) |
Returns the information shown in the task-list
Definition at line 88 of file CleanerTask.php.
References CleanerTask\getLanguageService(), CleanerTask\getPeriod(), and CleanerTask\getTcaTables().
|
protected |
Definition at line 229 of file CleanerTask.php.
References CleanerTask\$databaseConnection, and $GLOBALS.
Referenced by CleanerTask\cleanTable(), and CleanerTask\deleteFilesForTable().
|
protected |
Checks the $TCA for fields that can list file resources.
string | $table |
Definition at line 210 of file CleanerTask.php.
References $GLOBALS.
Referenced by CleanerTask\checkFileResourceFieldsBeforeDeletion().
|
protected |
Definition at line 240 of file CleanerTask.php.
References $GLOBALS.
Referenced by CleanerTask\getAdditionalInformation().
getPeriod | ( | ) |
Returns the period after which a row is deleted
Definition at line 122 of file CleanerTask.php.
References CleanerTask\$period.
Referenced by CleanerTask\getAdditionalInformation(), and CleanerTask\getPeriodAsTimestamp().
getPeriodAsTimestamp | ( | ) |
Definition at line 130 of file CleanerTask.php.
References CleanerTask\getPeriod().
Referenced by CleanerTask\cleanTable().
getTcaTables | ( | ) |
Returns the TCA-tables which are cleaned
Definition at line 150 of file CleanerTask.php.
References CleanerTask\$tcaTables.
Referenced by CleanerTask\execute(), and CleanerTask\getAdditionalInformation().
setDatabaseConnection | ( | $databaseConnection | ) |
\TYPO3\CMS\Core\Database\DatabaseConnection |
Definition at line 158 of file CleanerTask.php.
References CleanerTask\$databaseConnection.
setPeriod | ( | $period | ) |
Sets the period after which a row is deleted
int | $period |
Definition at line 112 of file CleanerTask.php.
References CleanerTask\$period.
setTcaTables | ( | $tcaTables = array() | ) |
Sets the TCA-tables which are cleaned
array | $tcaTables |
Definition at line 140 of file CleanerTask.php.
References CleanerTask\$tcaTables.
|
protected |
Definition at line 37 of file CleanerTask.php.
Referenced by CleanerTask\getDatabaseConnection(), and CleanerTask\setDatabaseConnection().
|
protected |
Definition at line 27 of file CleanerTask.php.
Referenced by CleanerTask\getPeriod(), and CleanerTask\setPeriod().
|
protected |
Definition at line 32 of file CleanerTask.php.
Referenced by CleanerTask\getTcaTables(), and CleanerTask\setTcaTables().