Time based Queue of tasks ready for execution.
- getReadyTasks() : A
- Get a list of taskId/entityId pairs ready for execution.
- queueTask() : mixed
- Queue a task for execution.
Get a list of taskId/entityId pairs ready for execution.
public getReadyTasks() : A
The method fetches task id/entity id where the when timestamp is less than the current time when the method was called.
Return valuesA —
list of pairs of the form array(taskId, entityId)
Queue a task for execution.
public queueTask( $taskId, $entityId, $when[, mixed $taskContents = false ]) : mixed
- $taskId :
The id of the task to queue
- $entityId :
The id of the crm entity the task is assiciated with
- $when :
The time after which the task should be executed. This is an optional value with a default value of 0
- $taskContents : mixed = false