Closed JarbyDev closed 9 years ago
@thomas1216 you already asked something like this: #80
Yes, it is possible. Simply query the database, retrieve the cron expression, and provide it to the factory method as a string.
Its Possible use the Cron Expression work with Dynamic SQL? I need to Create Schedules on the fly, without modifying the Php File. or its a better solution. thanks
// Works with predefined scheduling definitions $cron = Cron\CronExpression::factory('* * * * *'); $cron->isDue(); echo $cron->getNextRunDate()->format('Y-m-d H:i:s'); echo $cron->getPreviousRunDate()->format('Y-m-d H:i:s');