forum_data = $forum_data; } /** * Runs this cron task. */ public function run() { } /** * Returns whether this cron task can run, given current board configuration. */ public function is_runnable() { global $config; return !$config['use_system_cron']; } /** * Returns whether this cron task should run now, because enough time * has passed since it was last run. */ public function should_run() { return $this->forum_data['enable_prune'] && $this->forum_data['prune_next'] < time(); } /** * Returns parameters of this cron task as a query string. */ public function get_url_query_string() { return 'f=' . $this->forum_data['forum_id']; } }