134         $sections[] = $this->ui_factory->input()->field()->section(
   136                 $this->ui_factory->input()->field()->checkbox(
   137                     $this->
lng->txt(
"orgu_enable_my_staff"),
   138                     $this->
lng->txt(
"orgu_enable_my_staff_info")
   142             $this->
lng->txt(
"orgu_enable_my_staff")
   147         $available_types = $this->object_definition->getOrgUnitPermissionTypes();
   148         foreach ($available_types as $object_type) {
   153             if ($this->object_definition->isPlugin($object_type)) {
   156                 $is_multi = !$this->object_definition->isSystemObject($object_type)
   158                 $lang_prefix = $is_multi ? 
'objs_' : 
'obj_';
   159                 $label = $this->
lng->txt($lang_prefix . $object_type);
   164                 $changeable[] = $this->ui_factory->input()->field()->switchableGroup(
   166                         $this->ui_factory->input()->field()->group(
   168                                 $this->ui_factory->input()->field()->checkbox(
   169                                     $this->
lng->txt(
'orgu_global_set_type_default'),
   170                                     $this->
lng->txt(
'orgu_global_set_type_default_info'),
   172                                 ->
withValue((
bool) $setting->getActivationDefault())
   174                             $this->
lng->txt(
'orgu_global_set_type_changeable_object'),
   177                         $this->ui_factory->input()->field()->group(
   181                             $this->
lng->txt(
'orgu_global_set_type_changeable_no'),
   184                     $this->
lng->txt(
'orgu_global_set_type_changeable')
   187                     $setting->isChangeableForObject() ? 0 : 1
   190                     $this->
refinery->custom()->transformation(
   193                             $changeable = !(bool) array_shift($v);
   196                                 $default = (bool) current(array_shift($v));
   198                             return [$active, $changeable, $default];
   203                 $changeable[] = $this->ui_factory->input()->field()->hidden()->withValue(
'true')
   204                     ->withAdditionalTransformation(
   205                         $this->
refinery->custom()->transformation(
   206                             fn($v) => [
true, 
false, 
false]
   211             $groups[$object_type] = $this->ui_factory->input()->field()->optionalGroup(
   213                 $this->
lng->txt(
'orgu_global_set_positions_type_active') . 
' ' . $label
   216             if (!$setting->isActive()) {
   217                 $groups[$object_type] = $groups[$object_type]->withValue(null);
   221         $sections[] = $this->ui_factory->input()->field()->section(
   223             $this->
lng->txt(
"orgu_global_set_positions")
   226         $form_action = $this->
ctrl->getFormAction($this, self::CMD_SAVE);
   227         return $this->ui_factory->input()->container()->form()->standard(
 
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...