TYPO3
7.6
|
Public Member Functions | |
execute () | |
getAdditionalInformation () | |
Public Member Functions inherited from AbstractTask | |
__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 () | |
Public Attributes | |
$allTables = false | |
$numberOfDays = 180 | |
$table = '' | |
Protected Member Functions | |
handleTable ($table, array $configuration) | |
Additional Inherited Members | |
Protected Attributes inherited from AbstractTask | |
$scheduler | |
$taskUid | |
$disabled = false | |
$execution | |
$executionTime = 0 | |
$description = '' | |
$taskGroup | |
Remove old entries from tables.
This task deletes rows from tables older than the given number of days.
Available tables must be registered in $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][::class]['options']['tables'] See ext_localconf.php of scheduler extension for an example
Definition at line 26 of file TableGarbageCollectionTask.php.
execute | ( | ) |
Execute garbage collection, called by scheduler.
\RuntimeException | If configured table was not cleaned up |
Definition at line 49 of file TableGarbageCollectionTask.php.
References $GLOBALS, and TableGarbageCollectionTask\handleTable().
getAdditionalInformation | ( | ) |
This method returns the selected table as additional information
Definition at line 107 of file TableGarbageCollectionTask.php.
References $GLOBALS.
|
protected |
Execute clean up of a specific table
\RuntimeException | If table configuration is broken |
string | $table | The table to handle |
array | $configuration | Clean up configuration |
Definition at line 73 of file TableGarbageCollectionTask.php.
References $GLOBALS, TableGarbageCollectionTask\$table, and elseif.
Referenced by TableGarbageCollectionTask\execute().
$allTables = false |
Definition at line 31 of file TableGarbageCollectionTask.php.
$numberOfDays = 180 |
Definition at line 36 of file TableGarbageCollectionTask.php.
$table = '' |
Definition at line 41 of file TableGarbageCollectionTask.php.
Referenced by TableGarbageCollectionTask\handleTable().