OnceADayJobs
extends BaseCronJobs
in package
Cron jobs that run once a day.
Tags
Table of Contents
Properties
- $Container : Container
- $Cron : Cron
- $Db : Db
Methods
- __construct() : mixed
- Class constructor.
- execute() : bool
- Execute a cron job.
Properties
$Container
protected
Container
$Container
$Cron
protected
Cron
$Cron
$Db
protected
Db
$Db
Methods
__construct()
Class constructor.
public
__construct(Container $Container, Cron $Cron) : mixed
Parameters
- $Container : Container
-
The DI container class.
- $Cron : Cron
-
The cron class to help check job had already run.
execute()
Execute a cron job.
public
execute() : bool
Return values
bool —Return true
if it had run, false
if it was not run.