TYPO3
7.6
|
Public Member Functions | |
execute () | |
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 | |
$numberOfDays = 0 | |
Protected Member Functions | |
cleanupRecycledFiles ($directory, $timestamp) | |
Protected Attributes | |
$recyclerDirectory = '_recycler_' | |
Protected Attributes inherited from AbstractTask | |
$scheduler | |
$taskUid | |
$disabled = false | |
$execution | |
$executionTime = 0 | |
$description = '' | |
$taskGroup | |
Recycler folder garbage collection task
This task finds all "_recycler_" folders below fileadmin and deletes all file in them that where not change for more than given number of days.
Definition at line 24 of file RecyclerGarbageCollectionTask.php.
|
protected |
Gets a list of all files in a directory recursively and removes old ones.
\RuntimeException | If folders are not found or files can not be deleted |
string | $directory | Path to the directory |
int | $timestamp | Timestamp of the last file modification |
Definition at line 73 of file RecyclerGarbageCollectionTask.php.
Referenced by RecyclerGarbageCollectionTask\execute().
execute | ( | ) |
Cleanup recycled files, called by scheduler.
\BadMethodCallException |
Definition at line 47 of file RecyclerGarbageCollectionTask.php.
References $GLOBALS, and RecyclerGarbageCollectionTask\cleanupRecycledFiles().
$numberOfDays = 0 |
Definition at line 32 of file RecyclerGarbageCollectionTask.php.
|
protected |
Definition at line 39 of file RecyclerGarbageCollectionTask.php.