54 $componentOptions = array_unique(array_map(
function (
ilCronJobEntity $entity):
string {
60 }, $this->items->toArray()));
61 asort($componentOptions);
63 $title = $this->uiFactory->input()->field()->text($this->
lng->txt(
'title'));
64 $components = $this->uiFactory->input()->field()->select(
65 $this->
lng->txt(
'cron_component'),
66 array_combine($componentOptions, $componentOptions)
68 $schedule = $this->uiFactory->input()->field()->select(
69 $this->
lng->txt(
'cron_schedule'),
81 $status = $this->uiFactory->input()->field()->select(
82 $this->
lng->txt(
'cron_status'),
84 self::FILTER_STATUS_ACTIVE => $this->
lng->txt(
'cron_status_active'),
85 self::FILTER_STATUS_INACTIVE => $this->
lng->txt(
'cron_status_inactive'),
88 $result = $this->uiFactory->input()->field()->select(
89 $this->
lng->txt(
'cron_result'),
92 'cron_result_status_invalid_configuration' 95 'cron_result_status_no_action' 98 'cron_result_status_ok' 101 'cron_result_status_crashed' 104 'cron_result_status_reset' 107 'cron_result_status_fail' 113 self::FILTER_PROPERTY_NAME_TITLE => $title,
114 self::FILTER_PROPERTY_NAME_COMPONENT => $components,
115 self::FILTER_PROPERTY_NAME_SCHEDULE => $schedule,
116 self::FILTER_PROPERTY_NAME_STATUS => $status,
117 self::FILTER_PROPERTY_NAME_RESULT => $result,
120 return $this->uiService->filter()->standard(
121 'cron_job_adm_table',
124 array_fill(0, count($fields),
true),
const STATUS_INVALID_CONFIGURATION
const SCHEDULE_TYPE_IN_MINUTES
This will be replaced with an ENUM in ILIAS 9
const SCHEDULE_TYPE_MONTHLY
This will be replaced with an ENUM in ILIAS 9
const SCHEDULE_TYPE_WEEKLY
This will be replaced with an ENUM in ILIAS 9
const SCHEDULE_TYPE_IN_DAYS
This will be replaced with an ENUM in ILIAS 9
const SCHEDULE_TYPE_YEARLY
This will be replaced with an ENUM in ILIAS 9
const SCHEDULE_TYPE_DAILY
This will be replaced with an ENUM in ILIAS 9
const SCHEDULE_TYPE_QUARTERLY
This will be replaced with an ENUM in ILIAS 9
const SCHEDULE_TYPE_IN_HOURS
This will be replaced with an ENUM in ILIAS 9