Created
April 15, 2010 07:44
-
-
Save p/366810 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Cron task interface | |
* @package phpBB3 | |
*/ | |
interface cron_task | |
{ | |
/** | |
* Runs this cron task. | |
*/ | |
public function run(); | |
/** | |
* 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. | |
*/ | |
public function isRunnable(); | |
/** | |
* Returns whether this cron task should run now, because enough time | |
* has passed since it was last run. | |
*/ | |
public function shouldRun(); | |
/** | |
* Returns whether this cron task can be run in shutdown function. | |
*/ | |
public function isShutdownFunctionSafe(); | |
} | |
/** | |
* Parametrized cron task interface | |
* @package phpBB3 | |
*/ | |
interface parametrized_cron_task extends cron_task { | |
/** | |
* Returns parameters of this cron task as a query string. | |
*/ | |
public function getUrlQueryString(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment