Cron
class Cron implements WorkerManagerInterface
Cron jobs
Methods
Get host
Get port
Get title
Get description
Get cron command
Run cron command
Retrun true if command is crontab command
Reinstall cron entry for scheduler
Add cron entry for scheduler
Remove cron entry for scheduler
Return true if crontab entry is exists
Return true if crontab have jobs
Get crontab jobs
Return true if crontab have job
Add cron tab job
Add cron tab jobs
Remove all job from crontab
Delete crontab job
get cron details.
Details
at line 33
string
getPort()
Get host
at line 43
string
getHost()
Get port
at line 53
string
getTitle()
Get title
at line 63
string|null
getDescription()
Get description
at line 74
static string
getCronCommand(string $minutes = '5')
Get cron command
at line 86
static mixed
runCronCommand()
Run cron command
at line 100
static bool
isCronCommand(string $command)
Retrun true if command is crontab command
at line 112
mixed
reInstall()
Reinstall cron entry for scheduler
at line 124
bool
run()
Add cron entry for scheduler
at line 136
bool
stop()
Remove cron entry for scheduler
at line 153
bool
isRunning()
Return true if crontab entry is exists
at line 171
bool
hasJobs(array $jobs)
Return true if crontab have jobs
at line 183
array
getJobs()
Get crontab jobs
at line 199
bool
hasJob(string $command)
Return true if crontab have job
at line 212
void
addJob(string $command)
Add cron tab job
at line 230
mixed
addJobs(array $commands)
Add cron tab jobs
at line 250
mixed
removeAll()
Remove all job from crontab
at line 261
bool
removeJob(string $command)
Delete crontab job
at line 279
array
getDetails()
get cron details.