Timer_Manager
final class Timer_Manager
A static class to manage the saving and loading of Timers from the database.
Constants
| TIMERS_OPTION |
|
Methods
Return all Timers instances from the database in an associative list of their IDs.
Check all Timers to maybe be run.
Find a Timer instance and return it, or NULL if not found.
Update/add a Timer, optionally merge Actions with a previously existing Timer being overwritten.
Given an array of Timers, update all Timers in the database to reflect the data in the array.
Attempt to delete a timer from the database.
Details
at line 35
final static Timer[]
get_timers()
Return all Timers instances from the database in an associative list of their IDs.
at line 49
final static
run_timer_queue()
Check all Timers to maybe be run.
at line 64
final static null|Timer
get_timer(string $timer_id)
Find a Timer instance and return it, or NULL if not found.
at line 82
final static bool
update_timer(Timer $Timer, bool $merge_actions = false)
Update/add a Timer, optionally merge Actions with a previously existing Timer being overwritten.
at line 101
final static bool
set_timers(array $Timers)
Given an array of Timers, update all Timers in the database to reflect the data in the array.
at line 123
final static bool
delete_timer(string $timer_id)
Attempt to delete a timer from the database.