133 $sections[] = $this->ui_factory->input()->field()->section(
135 $this->ui_factory->input()->field()->checkbox(
136 $this->
lng->txt(
"orgu_enable_my_staff"),
137 $this->
lng->txt(
"orgu_enable_my_staff_info")
141 $this->
lng->txt(
"orgu_enable_my_staff")
146 $available_types = $this->object_definition->getOrgUnitPermissionTypes();
147 foreach ($available_types as $object_type) {
152 if ($this->object_definition->isPlugin($object_type)) {
155 $is_multi = !$this->object_definition->isSystemObject($object_type)
157 $lang_prefix = $is_multi ?
'objs_' :
'obj_';
158 $label = $this->
lng->txt($lang_prefix . $object_type);
163 $changeable[] = $this->ui_factory->input()->field()->switchableGroup(
165 $this->ui_factory->input()->field()->group(
167 $this->ui_factory->input()->field()->checkbox(
168 $this->
lng->txt(
'orgu_global_set_type_default'),
169 $this->
lng->txt(
'orgu_global_set_type_default_info'),
171 ->
withValue((
bool) $setting->getActivationDefault())
173 $this->
lng->txt(
'orgu_global_set_type_changeable_object'),
176 $this->ui_factory->input()->field()->group(
180 $this->
lng->txt(
'orgu_global_set_type_changeable_no'),
183 $this->
lng->txt(
'orgu_global_set_type_changeable')
186 $setting->isChangeableForObject() ? 0 : 1
189 $this->
refinery->custom()->transformation(
192 $changeable = !(bool) array_shift($v);
195 $default = (bool) current(array_shift($v));
197 return [$active, $changeable, $default];
202 $changeable[] = $this->ui_factory->input()->field()->hidden()->withValue(
'true')
203 ->withAdditionalTransformation(
204 $this->
refinery->custom()->transformation(
205 fn($v) => [
true,
false,
false]
210 $groups[$object_type] = $this->ui_factory->input()->field()->optionalGroup(
212 $this->
lng->txt(
'orgu_global_set_positions_type_active') .
' ' . $label
215 if (!$setting->isActive()) {
216 $groups[$object_type] = $groups[$object_type]->withValue(
null);
220 $sections[] = $this->ui_factory->input()->field()->section(
222 $this->
lng->txt(
"orgu_global_set_positions")
225 $form_action = $this->
ctrl->getFormAction($this, self::CMD_SAVE);
226 return $this->ui_factory->input()->container()->form()->standard(
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static lookupTxtById(string $plugin_id, string $lang_var)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...