\rex_cronjob_manager

Cronjob Addon.

Summary

Methods
Properties
Constants
factory()
setMessage()
getMessage()
hasMessage()
setCronjob()
tryExecute()
log()
getTypes()
registerType()
getCurrentEnvironment()
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() : self

Returns

self —

setMessage()

setMessage(string  $message) : mixed

Parameters

string $message

Returns

mixed —

getMessage()

getMessage() : string

Returns

string —

hasMessage()

hasMessage() : bool

Returns

bool —

setCronjob()

setCronjob(\rex_cronjob|class-string<\rex_cronjob>  $cronjob) : mixed

Parameters

\rex_cronjob|class-string<\rex_cronjob> $cronjob

Returns

mixed —

tryExecute()

tryExecute(\rex_cronjob|class-string<\rex_cronjob>  $cronjob, string  $name = '', array  $params = [], bool  $log = true, int|null  $id = null) : bool

Parameters

\rex_cronjob|class-string<\rex_cronjob> $cronjob
string $name
array $params
bool $log
int|null $id

Returns

bool —

log()

log(bool  $success, string  $message) : mixed

Parameters

bool $success
string $message

Returns

mixed —

getTypes()

getTypes() : \list<class-string<\rex_cronjob>>

Returns

\list> —

registerType()

registerType(class-string<\rex_cronjob>  $class) : mixed

Parameters

class-string<\rex_cronjob> $class

Returns

mixed —

getCurrentEnvironment()

getCurrentEnvironment() : string

Returns

string —