rex_cronjob_manager_sql
in package
Cronjob Addon.
Tags
Table of Contents
Methods
- calculateNextTime() : int|null
- check() : void
- delete() : bool
- factory() : self
- getManager() : rex_cronjob_manager
- getMessage() : string
- getMinNextTime() : int|null
- getName() : string
- hasManager() : bool
- hasMessage() : bool
- saveNextTime() : true
- setExecutionStart() : bool
- setMessage() : void
- setNextTime() : bool
- setStatus() : bool
- tryExecute() : bool
Methods
calculateNextTime()
public
static calculateNextTime(array<string|int, mixed> $interval) : int|null
Parameters
- $interval : array<string|int, mixed>
Return values
int|nullcheck()
public
check([callable(string, bool, string): void|null $callback = null ]) : void
Parameters
- $callback : callable(string, bool, string): void|null = null
-
Callback is called after every job execution (params: job name, success status, message)
delete()
public
delete(int $id) : bool
Parameters
- $id : int
Return values
boolfactory()
public
static factory([rex_cronjob_manager|null $manager = null ]) : self
Parameters
- $manager : rex_cronjob_manager|null = null
Return values
selfgetManager()
public
getManager() : rex_cronjob_manager
Return values
rex_cronjob_managergetMessage()
public
getMessage() : string
Return values
stringgetMinNextTime()
public
getMinNextTime() : int|null
Return values
int|nullgetName()
public
getName(int $id) : string
Parameters
- $id : int
Tags
Return values
stringhasManager()
public
hasManager() : bool
Return values
boolhasMessage()
public
hasMessage() : bool
Return values
boolsaveNextTime()
public
saveNextTime([int|null $nexttime = null ]) : true
Parameters
- $nexttime : int|null = null
Return values
truesetExecutionStart()
public
setExecutionStart(int $id[, mixed $reset = false ]) : bool
Parameters
- $id : int
- $reset : mixed = false
Return values
boolsetMessage()
public
setMessage(string $message) : void
Parameters
- $message : string
setNextTime()
public
setNextTime(int $id, string $interval[, bool $resetExecutionStart = false ]) : bool
Parameters
- $id : int
- $interval : string
- $resetExecutionStart : bool = false
Return values
boolsetStatus()
public
setStatus(int $id, mixed $status) : bool
Parameters
- $id : int
- $status : mixed
Return values
booltryExecute()
public
tryExecute(int $id[, bool $log = true ]) : bool
Parameters
- $id : int
- $log : bool = true