18 require_once SQ_CORE_PACKAGE_PATH.
'/system/cron/cron_job/cron_job_edit_fns.inc';
48 parent::__construct();
68 $edit_fns = $cron_job->getEditFns();
69 echo translate(
'cron_job_regenerate_report_at');
70 $edit_fns->_paintWhenBox($cron_job, $o, $prefix);
73 echo
'<br />'.translate(
'cron_job_regenerate_report_repeat');
95 $edit_fns = $cron_job->getEditFns();
97 $when_oo = $edit_fns->_processWhenBox($cron_job, $o, $prefix);
103 if ( $_REQUEST[$prefix.
'_when_interval_mins'] ==
'--'
104 && $_REQUEST[$prefix.
'_when_interval_hours'] ==
'--'
105 && $_REQUEST[$prefix.
'_when_interval_days'] ==
'-') {
117 trigger_localised_error(
'CRON0050', E_USER_WARNING, $GLOBALS[
'SQ_SYSTEM']->am->getTypeInfo($asset->
type(),
'name'));
123 if (!@$cron_job->setAttrValue(
'when', $when_oo)) {
124 $cron_mgr = $GLOBALS[
'SQ_SYSTEM']->am->getSystemAsset(
'cron_manager');
125 trigger_localised_error(
'CRON0048', E_USER_WARNING, $GLOBALS[
'SQ_SYSTEM']->am->getTypeInfo($asset->
type(),
'name'), easy_datetime($cron_mgr->timeOfNextRun()));
128 $when_oo_str = $cron_job->attr(
'when');
129 $start_time = $cron_job->getNextRun($when_oo_str);
133 $when_ti_arr = explode(
',', $when_ti);
134 $when_ti_arr[0] =
'TI='.$start_time;
135 $when_ti_str = implode(
',', $when_ti_arr);