RecurringJobInterface
extends
JobInterface
in
Job recurring interface
Table of Contents
Constants
- STATUS_COMPLETED = 2
- STATUS_CREATED = 0
- STATUS_ERROR = 10
- STATUS_EXECUTED = 3
- STATUS_PENDING = 1
- STATUS_SUSPENDED = 5
Methods
- addError() : void
- Add error
- descriptor() : object|null
- Get properties descriptor
- execute() : void
- Job code
- getDateCreated() : int
- Get date created timestamp
- getDateExecuted() : int
- Get execution timestamp
- getDueDate() : int
- Get next run date time timestamp
- getErrors() : array<string|int, mixed>
- Get execution errors
- getExtensionName() : string|null
- Return extension name
- getId() : string|null
- Return unique job id
- getName() : string|null
- Return job name
- getParams() : array<string|int, mixed>
- Get hjob params
- getPriority() : int
- Return job priority
- getQueue() : string|null
- Get queue
- getRecurringInterval() : string|null
- Return recurring interval
- getStatus() : int
- Get job status
- hasSuccess() : bool
- Return true if job is executed successful
- isDue() : bool
- Return true if job is due
- setDateCreated() : void
- Set date pushed in queue
- setDateExecuted() : void
- Set execution date
- setExtensionName() : void
- Set extension name
- setId() : void
- Set id
- setName() : void
- Set name
- setParams() : void
- Set job params
- setPriority() : void
- Set priority
- setQueue() : void
- Set executuion Queue (null for any)
- setRecurringInterval() : void
- Set recurring interval
- setStatus() : void
- Set job status
- toArray() : array<string|int, mixed>
- Convert to array
Constants
STATUS_COMPLETED
public
mixed
STATUS_COMPLETED
= 2
STATUS_CREATED
public
mixed
STATUS_CREATED
= 0
STATUS_ERROR
public
mixed
STATUS_ERROR
= 10
STATUS_EXECUTED
public
mixed
STATUS_EXECUTED
= 3
STATUS_PENDING
public
mixed
STATUS_PENDING
= 1
STATUS_SUSPENDED
public
mixed
STATUS_SUSPENDED
= 5
Methods
addError()
Add error
public
addError(string $errorMessage) : void
Parameters
- $errorMessage : string
descriptor()
Get properties descriptor
public
descriptor() : object|null
Return values
object|nullexecute()
Job code
public
execute() : void
getDateCreated()
Get date created timestamp
public
getDateCreated() : int
Return values
intgetDateExecuted()
Get execution timestamp
public
getDateExecuted() : int
Return values
intgetDueDate()
Get next run date time timestamp
public
getDueDate() : int
Return values
intgetErrors()
Get execution errors
public
getErrors() : array<string|int, mixed>
Return values
array<string|int, mixed>getExtensionName()
Return extension name
public
getExtensionName() : string|null
Return values
string|nullgetId()
Return unique job id
public
getId() : string|null
Return values
string|nullgetName()
Return job name
public
getName() : string|null
Return values
string|nullgetParams()
Get hjob params
public
getParams() : array<string|int, mixed>
Return values
array<string|int, mixed>getPriority()
Return job priority
public
getPriority() : int
Return values
intgetQueue()
Get queue
public
getQueue() : string|null
Return values
string|nullgetRecurringInterval()
Return recurring interval
public
getRecurringInterval() : string|null
Return values
string|nullgetStatus()
Get job status
public
getStatus() : int
Return values
inthasSuccess()
Return true if job is executed successful
public
hasSuccess() : bool
Return values
boolisDue()
Return true if job is due
public
isDue() : bool
Return values
boolsetDateCreated()
Set date pushed in queue
public
setDateCreated(int|null $time) : void
Parameters
- $time : int|null
-
timestamp
setDateExecuted()
Set execution date
public
setDateExecuted(int|null $time) : void
Parameters
- $time : int|null
-
timestamp
setExtensionName()
Set extension name
public
setExtensionName(string|null $name) : void
Parameters
- $name : string|null
setId()
Set id
public
setId(string|null $id) : void
Parameters
- $id : string|null
setName()
Set name
public
setName(string|null $name) : void
Parameters
- $name : string|null
setParams()
Set job params
public
setParams(array<string|int, mixed> $params) : void
Parameters
- $params : array<string|int, mixed>
setPriority()
Set priority
public
setPriority(int $priority) : void
Parameters
- $priority : int
setQueue()
Set executuion Queue (null for any)
public
setQueue(string|null $name) : void
Parameters
- $name : string|null
setRecurringInterval()
Set recurring interval
public
setRecurringInterval(string $interval) : void
Parameters
- $interval : string
setStatus()
Set job status
public
setStatus(int $status) : void
Parameters
- $status : int
toArray()
Convert to array
public
toArray() : array<string|int, mixed>