diff --git a/phpBB/phpbb/cron/manager.php b/phpBB/phpbb/cron/manager.php index 1eb8edf033..77dfcff471 100644 --- a/phpBB/phpbb/cron/manager.php +++ b/phpBB/phpbb/cron/manager.php @@ -121,6 +121,21 @@ class manager return null; } + /** + * Find all tasks and return them. + * + * @return array List of all tasks. + */ + public function get_tasks() + { + $tasks = array(); + foreach ($this->tasks as $task) + { + $tasks[] = $task; + } + return $tasks; + } + /** * Wraps a task inside an instance of \phpbb\cron\task\wrapper. *