53 {
54 $componentOptions = array_unique(array_map(
function (
ilCronJobEntity $entity):
string {
56 return $this->lng->txt('cmps_plugin') . '/' . $entity->getComponent();
57 }
58
60 }, $this->items->toArray()));
61 asort($componentOptions);
62
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)
67 );
68 $schedule = $this->uiFactory->input()->field()->select(
69 $this->
lng->txt(
'cron_schedule'),
70 [
79 ]
80 );
81 $status = $this->uiFactory->input()->field()->select(
82 $this->
lng->txt(
'cron_status'),
83 [
84 self::FILTER_STATUS_ACTIVE => $this->lng->txt('cron_status_active'),
85 self::FILTER_STATUS_INACTIVE => $this->lng->txt('cron_status_inactive'),
86 ]
87 );
88 $result = $this->uiFactory->input()->field()->select(
89 $this->
lng->txt(
'cron_result'),
90 [
92 'cron_result_status_invalid_configuration'
93 ),
95 'cron_result_status_no_action'
96 ),
98 'cron_result_status_ok'
99 ),
101 'cron_result_status_crashed'
102 ),
104 'cron_result_status_reset'
105 ),
107 'cron_result_status_fail'
108 ),
109 ]
110 );
111
112 $fields = [
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,
118 ];
119
120 return $this->uiService->filter()->standard(
121 'cron_job_adm_table',
122 $action,
123 $fields,
124 array_fill(0, count($fields), true),
125 true,
126 true
127 );
128 }
const STATUS_INVALID_CONFIGURATION
const SCHEDULE_TYPE_IN_DAYS
@depracated This will be replaced with an ENUM in ILIAS 9
const SCHEDULE_TYPE_IN_HOURS
@depracated This will be replaced with an ENUM in ILIAS 9
const SCHEDULE_TYPE_IN_MINUTES
@depracated This will be replaced with an ENUM in ILIAS 9
const SCHEDULE_TYPE_WEEKLY
@depracated This will be replaced with an ENUM in ILIAS 9
const SCHEDULE_TYPE_YEARLY
@depracated This will be replaced with an ENUM in ILIAS 9
const SCHEDULE_TYPE_DAILY
@depracated This will be replaced with an ENUM in ILIAS 9
const SCHEDULE_TYPE_QUARTERLY
@depracated This will be replaced with an ENUM in ILIAS 9
const SCHEDULE_TYPE_MONTHLY
@depracated This will be replaced with an ENUM in ILIAS 9