ProcessScheduler
in package
Uses
Log
Class to manage and schedule background tasks // {{{
Table of Contents
- __construct() : mixed
- Creates a new ProcessScheduler
- add() : mixed
- Add a Process to the queue
- isProcessRunning() : bool
- Checks if there are running processes of a certain class
- schedule() : mixed
- Run scheduler
Methods
__construct()
Creates a new ProcessScheduler
public
__construct(mysqli $dbc, Business $business, TaskMapper $mapper) : mixed
Parameters
- $dbc : mysqli
- $business : Business
- $mapper : TaskMapper
Return values
mixed —add()
Add a Process to the queue
public
add(Process $process) : mixed
Parameters
- $process : Process
Return values
mixed —isProcessRunning()
Checks if there are running processes of a certain class
public
isProcessRunning(string $classname) : bool
Parameters
- $classname : string
-
a class constant
Return values
bool —schedule()
Run scheduler
public
schedule() : mixed