92 {
94 $form->setFormAction($this->
ctrl->getFormAction($this));
95 $form->setTitle($this->
getLang()->txt(
'mem_' . $a_type .
'_form'));
96
97
98 $fields[
'name'] = $this->
lng->txt(
'name');
99 $fields[
'login'] = $this->
lng->txt(
'login');
100 $fields[
'email'] = $this->
lng->txt(
'email');
101
103 $field_info->sortExportFields();
104
105 foreach ($field_info->getExportableFields() as $field) {
106 switch ($field) {
107 case 'username':
108 case 'firstname':
109 case 'lastname':
110 case 'email':
111 continue 2;
112 }
113
114
115 $fields[$field] = $this->
lng->txt($field);
116 }
117
118
119 $exportable = $this->
profile->getVisibleUserDefinedFields(Context::buildFromObjectType($this->type));
120 foreach ($exportable as $field) {
121 $fields[
'udf_' . $field->getIdentifier()] = $field->getLabel($this->
lng);
122 }
123
125 foreach ($fields as
$id => $name) {
127 }
128 $form->addItem($ufields);
129
131 if ($this->parent_type === 'crs') {
132 if ($privacy->enabledCourseAccessTimes()) {
134 }
135 }
136 if ($this->parent_type === 'grp') {
137 if ($privacy->enabledGroupAccessTimes()) {
139 }
140 }
143
145 $blank->setMulti(true);
146 $form->addItem($blank);
147
149
151 if ($this->parent_type === 'crs') {
153 }
155
156 if (!$this->parent_obj_id) {
157 $subscriber =
new ilCheckboxOption($this->
lng->txt(
'event_user_selection_include_requests'),
'subscr');
158 $roles->addOption($subscriber);
159
160 $waiting_list =
new ilCheckboxOption($this->
lng->txt(
'event_user_selection_include_waiting_list'),
'wlist');
161 $roles->addOption($waiting_list);
162 }
163 $form->addItem($roles);
164
165 switch ($a_type) {
167
169 if ($this->
http->wrapper()->query()->has(
'ref_id')) {
170 $ref_id = $this->
http->wrapper()->query()->retrieve(
171 'ref_id',
173 );
174 }
175
176 if ($this->rbacsystem->checkAccess(
'write',
$ref_id)) {
177 $form->addCommandButton(
'savePrintViewSettings', $this->
getLang()->txt(
'save'));
178 }
179 break;
180 }
181
182 $identifier = $this->parent_type . 's_pview';
183 if ($this->parent_obj_id) {
185 } else {
186 $identifier_for_object = $identifier . '_0';
187 }
188
190 if (!$settings->hasStoredEntry()) {
191
193 }
194 $settings->exportToForm($form);
195
196 return $form;
197 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
This class represents an option in a checkbox group.
static _getInstanceByType(string $a_type)
Get Singleton Instance.
const TYPE_PRINT_VIEW_SETTINGS
This class represents a text property in a property form.