SilverStripe\ContentReview\Jobs\ContentReviewNotificationJob
Allows the content review module to use the optional queued jobs module to automatically process content review emails. If the module isn't installed, nothing is done - SilverStripe will never include this class declaration.
If the module is installed, it will create a new job to be processed once every day by default.
Synopsis
class ContentReviewNotificationJob
extends AbstractQueuedJob
implements
QueuedJob
{
- // members
- private static integer $first_run_hour = 9;
- private static integer $next_run_hour = 9;
- private static integer $next_run_minute = 0;
- private static integer $next_run_in_days = 1;
- // methods
- public string getTitle()
- public string getJobType()
- public void setUp()
- public void process()
- protected void queueNextRun()
Hierarchy
Extends
- Symbiote\QueuedJobs\Services\AbstractQueuedJob
Implements
- Symbiote\QueuedJobs\Services\QueuedJob
Members
private
- $first_run_hour
—
int
The hour that the first job will be created at (for the next day). All other jobs should be triggered around this time too, as the next generation is queued when this job is run. - $next_run_hour
—
int
The hour at which to run these jobs. - $next_run_in_days
—
int
The number of days to skip between job runs (1 means run this job every day, 2 means run it every second day etc). - $next_run_minute
—
int
The minutes past the hour (see above) at which to run these jobs.