88 {
90 $form->setFormAction($this->
ctrl->getFormAction($this));
91 $form->setTitle($this->
getLang()->txt(
'mem_' . $a_type .
'_form'));
92
93
94 $fields[
'name'] = $this->
lng->txt(
'name');
95 $fields[
'login'] = $this->
lng->txt(
'login');
96 $fields[
'email'] = $this->
lng->txt(
'email');
97
99 $field_info->sortExportFields();
100
101 foreach ($field_info->getExportableFields() as $field) {
102 switch ($field) {
103 case 'username':
104 case 'firstname':
105 case 'lastname':
106 case 'email':
107 continue 2;
108 }
109
110
111 $fields[$field] = $this->
lng->txt($field);
112 }
113
114
116 $exportable = array();
117 if ($this->parent_type === 'crs') {
118 $exportable = $udf->getCourseExportableFields();
119 } elseif ($this->parent_type === 'grp') {
120 $exportable = $udf->getGroupExportableFields();
121 }
122 foreach ($exportable as $field_id => $udf_data) {
123 $fields['udf_' . $field_id] = $udf_data['field_name'];
124 }
125
129 }
130 $form->addItem($ufields);
131
133 if ($this->parent_type === 'crs') {
134 if ($privacy->enabledCourseAccessTimes()) {
136 }
137 }
138 if ($this->parent_type === 'grp') {
139 if ($privacy->enabledGroupAccessTimes()) {
141 }
142 }
145
147 $blank->setMulti(true);
148 $form->addItem($blank);
149
151
153 if ($this->parent_type === 'crs') {
155 }
157
158 if (!$this->parent_obj_id) {
159 $subscriber =
new ilCheckboxOption($this->
lng->txt(
'event_user_selection_include_requests'),
'subscr');
160 $roles->addOption($subscriber);
161
162 $waiting_list =
new ilCheckboxOption($this->
lng->txt(
'event_user_selection_include_waiting_list'),
'wlist');
163 $roles->addOption($waiting_list);
164 }
165 $form->addItem($roles);
166
167 switch ($a_type) {
169
171 if ($this->
http->wrapper()->query()->has(
'ref_id')) {
172 $ref_id = $this->
http->wrapper()->query()->retrieve(
173 'ref_id',
175 );
176 }
177
178 if ($this->rbacsystem->checkAccess(
'write',
$ref_id)) {
179 $form->addCommandButton(
'savePrintViewSettings', $this->
getLang()->txt(
'save'));
180 }
181 break;
182 }
183
184 $identifier = $this->parent_type . 's_pview';
185 if ($this->parent_obj_id) {
187 } else {
188 $identifier_for_object = $identifier . '_0';
189 }
190
193
195 }
197
198 return $form;
199 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _getInstanceByType(string $a_type)
Get Singleton Instance.
const TYPE_PRINT_VIEW_SETTINGS
This class represents a text property in a property form.