Source of file CronTask.php
Size: 0,633 Bytes - Last Modified: 2021-12-23T10:29:10+00:00
/var/www/docs.ssmods.com/process/src/src/Interfaces/CronTask.php
1234567891011121314151617181920212223242526272829 | <?php namespace SilverStripe\CronTask\Interfaces; /** * By implementing this interface a /dev/cron will be able to start in on the * expression that you return frmo getSchedule(); * * @package crontask */ interface CronTask { /** * Return a string for a CRON expression. If a "falsy" value is returned, the CronTaskController will assume the * CronTask is disabled. * * @return string */ public function getSchedule(); /** * When this script is supposed to run the CronTaskController will execute * process(). * * @return void */ public function process(); } |