name; } /** * Sets the name of the task. * * @param string $name The task name */ public function set_name($name) { $this->name = $name; } /** * 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. * * @return bool */ public function is_runnable() { return true; } /** * Returns whether this cron task should run now, because enough time * has passed since it was last run. * * @return bool */ public function should_run() { return true; } }