use wcf\data\IEditableCachedObject;
use wcf\system\cache\CacheHandler;
use wcf\system\WCF;
-use wcf\system\util;
/**
* Provides functions to edit cronjobs.
*/
protected static $baseClass = 'wcf\data\cronjob\Cronjob';
- /**
- * @see wcf\data\DatabaseObjectEditor::create()
- */
- public static function create(array $parameters = array()) {
- // handle execution times
- if (!isset($parameters['nextExec'])) {
- $parameters['nextExec'] = TIME_NOW;
- }
- if (!isset($parameters['nextExec'])) {
- $parameters['afterNextExec'] = CronjobUtil::calculateNextExec($parameters['startMinute'], $parameters['startHour'], $parameters['startDom'], $parameters['startMonth'], $parameters['startDow']);
- }
-
- parent::create($parameters);
- }
-
/**
* @see wcf\data\IEditableCachedObject::resetCache()
*/