1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-13 20:28:44 +01:00

[ticket/12602] Add function get_tasks.

PHPBB3-12602
This commit is contained in:
Etienne Baroux 2014-06-02 16:12:47 +02:00
parent dc7be4f273
commit 85e8d1c2ef

View File

@ -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.
*