aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEtienne Baroux <barouxe@phelma.grenoble-inp.fr>2014-06-02 16:12:47 +0200
committerEtienne Baroux <barouxe@phelma.grenoble-inp.fr>2014-06-02 16:12:47 +0200
commit85e8d1c2efd5f3746ebd50c91ba9e95a98ecb28c (patch)
tree12fd4a72cb41b99c95f937b0d7dc9b2bd7eb7e41
parentdc7be4f273f68e85aa218a6731e4cb691c4691e0 (diff)
downloadforums-85e8d1c2efd5f3746ebd50c91ba9e95a98ecb28c.tar
forums-85e8d1c2efd5f3746ebd50c91ba9e95a98ecb28c.tar.gz
forums-85e8d1c2efd5f3746ebd50c91ba9e95a98ecb28c.tar.bz2
forums-85e8d1c2efd5f3746ebd50c91ba9e95a98ecb28c.tar.xz
forums-85e8d1c2efd5f3746ebd50c91ba9e95a98ecb28c.zip
[ticket/12602] Add function get_tasks.
PHPBB3-12602
-rw-r--r--phpBB/phpbb/cron/manager.php15
1 files changed, 15 insertions, 0 deletions
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
@@ -122,6 +122,21 @@ class manager
}
/**
+ * 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.
*
* @param \phpbb\cron\task\task $task The task.