/** * Create the default notification cronjob for income contracts */ public static function createDefaultIncomeContractNotificationCron() { $cron = new \GO\Base\Cron\CronJob(); $cron->name = GO::t('incomeNotificationCron', 'projects2'); $cron->active = true; $cron->runonce = false; $cron->minutes = '2'; $cron->hours = '7'; $cron->monthdays = '*'; $cron->months = '*'; $cron->weekdays = '*'; $cron->job = 'GO\\Projects2\\Cron\\IncomeNotification'; return $cron->save(); }