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:
parent
dc7be4f273
commit
85e8d1c2ef
@ -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.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user