\rex_cronjob_manager_sql

Cronjob Addon.

Summary

Methods
Properties
Constants
factory()
getManager()
hasManager()
setMessage()
getMessage()
hasMessage()
getName()
setStatus()
setExecutionStart()
delete()
check()
tryExecute()
setNextTime()
getMinNextTime()
saveNextTime()
calculateNextTime()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

factory()

factory(\rex_cronjob_manager  $manager = null) : self

Parameters

\rex_cronjob_manager $manager

Returns

self —

getManager()

getManager() : \rex_cronjob_manager

Returns

\rex_cronjob_manager —

hasManager()

hasManager() : bool

Returns

bool —

setMessage()

setMessage(string  $message) : mixed

Parameters

string $message

Returns

mixed —

getMessage()

getMessage() : string

Returns

string —

hasMessage()

hasMessage() : bool

Returns

bool —

getName()

getName(int  $id) : string

Parameters

int $id

Throws

\rex_exception

Returns

string —

setStatus()

setStatus(int  $id, mixed  $status) : bool

Parameters

int $id
mixed $status

Returns

bool —

setExecutionStart()

setExecutionStart(int  $id, mixed  $reset = false) : bool

Parameters

int $id
mixed $reset

Returns

bool —

delete()

delete(int  $id) : bool

Parameters

int $id

Returns

bool —

check()

check() : mixed

Returns

mixed —

tryExecute()

tryExecute(int  $id, mixed  $log = true) : bool

Parameters

int $id
mixed $log

Returns

bool —

setNextTime()

setNextTime(mixed  $id, mixed  $interval, mixed  $resetExecutionStart = false) : bool

Parameters

mixed $id
mixed $interval
mixed $resetExecutionStart

Returns

bool —

getMinNextTime()

getMinNextTime() : int|null

Returns

int|null —

saveNextTime()

saveNextTime(int|null  $nexttime = null) : true

Parameters

int|null $nexttime

Returns

true —

calculateNextTime()

calculateNextTime(array  $interval) : int|null

Parameters

array $interval

Returns

int|null —