tidy_plupload
class tidy_plupload extends base
Cron task for cleaning plupload's temporary upload directory.
Properties
protected int | $max_file_age | How old a file must be (in seconds) before it is deleted. |
|
protected int | $cron_frequency | How often we run the cron (in seconds). |
|
protected string | $phpbb_root_path | phpBB root path |
|
protected config | $config | Config object |
|
protected log_interface | $log | ||
protected user | $user | ||
protected string | $plupload_upload_path | Directory where plupload stores temporary files. |
Methods
Returns whether this cron task can run, given current board configuration.
Returns whether this cron task should run now, because enough time has passed since it was last run.
Runs this cron task.
Details
in
base at line 34
string
get_name()
Returns the name of the task.
in
base at line 44
set_name(string $name)
Sets the name of the task.
at line 114
bool
is_runnable()
Returns whether this cron task can run, given current board configuration.
For example, a cron task that prunes forums can only run when forum pruning is enabled.
at line 122
bool
should_run()
Returns whether this cron task should run now, because enough time has passed since it was last run.
at line 65
__construct(string $phpbb_root_path, config $config, log_interface $log, user $user)
Constructor.
at line 78
null
run()
Runs this cron task.