46 $componentOptions = array_unique(
53 }, $this->items->toArray())
55 asort($componentOptions);
57 $title = $this->uiFactory->input()->field()->text($this->
lng->txt(
'title'));
58 $components = $this->uiFactory->input()->field()->select(
59 $this->
lng->txt(
'cron_component'),
60 array_combine($componentOptions, $componentOptions)
62 $schedule = $this->uiFactory->input()->field()->select(
63 $this->
lng->txt(
'cron_schedule'),
65 CronJobScheduleType::SCHEDULE_TYPE_DAILY->value => $this->
lng->txt(
'cron_schedule_daily'),
66 CronJobScheduleType::SCHEDULE_TYPE_WEEKLY->value => $this->
lng->txt(
'cron_schedule_weekly'),
67 CronJobScheduleType::SCHEDULE_TYPE_MONTHLY->value => $this->
lng->txt(
'cron_schedule_monthly'),
68 CronJobScheduleType::SCHEDULE_TYPE_QUARTERLY->value => $this->
lng->txt(
'cron_schedule_quarterly'),
70 CronJobScheduleType::SCHEDULE_TYPE_IN_MINUTES->value => sprintf($this->
lng->txt(
'cron_schedule_in_minutes'),
'x'),
71 CronJobScheduleType::SCHEDULE_TYPE_IN_HOURS->value => sprintf($this->
lng->txt(
'cron_schedule_in_hours'),
'x'),
72 CronJobScheduleType::SCHEDULE_TYPE_IN_DAYS->value => sprintf($this->
lng->txt(
'cron_schedule_in_days'),
'x')
75 $status = $this->uiFactory->input()->field()->select(
76 $this->
lng->txt(
'cron_status'),
78 self::FILTER_STATUS_ACTIVE => $this->
lng->txt(
'cron_status_active'),
79 self::FILTER_STATUS_INACTIVE => $this->
lng->txt(
'cron_status_inactive'),
82 $result = $this->uiFactory->input()->field()->select(
83 $this->
lng->txt(
'cron_result'),
86 'cron_result_status_invalid_configuration' 89 'cron_result_status_no_action' 92 'cron_result_status_ok' 95 'cron_result_status_crashed' 98 'cron_result_status_reset' 101 'cron_result_status_fail' 107 self::FILTER_PROPERTY_NAME_TITLE => $title,
108 self::FILTER_PROPERTY_NAME_COMPONENT => $components,
109 self::FILTER_PROPERTY_NAME_SCHEDULE => $schedule,
110 self::FILTER_PROPERTY_NAME_STATUS => $status,
111 self::FILTER_PROPERTY_NAME_RESULT => $result,
114 return $this->uiService->filter()->standard(
115 'cron_job_adm_table',
118 array_fill(0, count($fields),
true),
final const STATUS_INVALID_CONFIGURATION
final const STATUS_NO_ACTION
final const STATUS_CRASHED