4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
25 $this->parent_type = $a_parent_type;
29 $this->lng->loadLanguageModule(
'crs');
30 $this->lng->loadLanguageModule(
'mem');
48 $next_class = $this->ctrl->getNextClass($this);
49 $cmd = $this->ctrl->getCmd();
70 $form = $this->
initForm(self::TYPE_PRINT_VIEW_SETTINGS);
73 $GLOBALS[
'tpl']->setContent($form->getHTML());
81 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
83 $form->setFormAction($this->ctrl->getFormAction($this));
87 $fields[
'name'] =
$GLOBALS[
'lng']->txt(
'name');
88 $fields[
'login'] =
$GLOBALS[
'lng']->txt(
'login');
89 $fields[
'email'] =
$GLOBALS[
'lng']->txt(
'email');
91 include_once(
'Services/PrivacySecurity/classes/class.ilPrivacySettings.php');
92 include_once
'Services/PrivacySecurity/classes/class.ilExportFieldsInfo.php';
93 include_once(
'Modules/Course/classes/Export/class.ilCourseDefinedFieldDefinition.php');
94 include_once(
'Services/User/classes/class.ilUserDefinedFields.php');
97 $field_info->sortExportFields();
99 foreach($field_info->getExportableFields() as $field)
111 $fields[$field] =
$GLOBALS[
'lng']->txt($field);
116 include_once
'./Services/User/classes/class.ilUserDefinedFields.php';
118 $exportable =
array();
119 if($this->parent_type ==
'crs')
121 $exportable = $udf->getCourseExportableFields();
123 elseif($this->parent_type ==
'grp')
125 $exportable = $udf->getGroupExportableFields();
127 foreach((
array) $exportable as $field_id => $udf_data)
129 $fields[
'udf_'.$field_id] = $udf_data[
'field_name'];
134 foreach($fields as $id => $name)
138 $form->addItem($ufields);
141 include_once
'./Services/PrivacySecurity/classes/class.ilPrivacySettings.php';
143 if($this->parent_type ==
'crs')
145 if($privacy->enabledCourseAccessTimes())
150 if($this->parent_type ==
'grp')
152 if($privacy->enabledGroupAccessTimes())
162 $blank->setMulti(
true);
163 $form->addItem($blank);
168 if($this->parent_type ==
'crs')
175 $roles->addOption($subscriber);
178 $roles->addOption($waiting_list);
180 $form->addItem($roles);
184 case self::TYPE_PRINT_VIEW_SETTINGS:
185 $form->addCommandButton(
'savePrintViewSettings', $this->
getLang()->txt(
'save'));
189 include_once
"Services/User/classes/class.ilUserFormSettings.php";
191 $settings->exportToForm($form);
201 $form = $this->
initForm(self::TYPE_PRINT_VIEW_SETTINGS);
202 if($form->checkInput())
204 $form->setValuesByPost();
206 include_once
"Services/User/classes/class.ilUserFormSettings.php";
212 $settings->importFromForm($form);
216 $GLOBALS[
'ilCtrl']->redirect($this,
'printViewSettings');
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
const TYPE_PRINT_VIEW_SETTINGS
executeCommand()
Execute command.
savePrintViewSettings()
Save print view settings.
This class represents an option in a checkbox group.
static _getInstance()
Get instance.
initForm($a_type)
init settings form
printViewSettings(ilPropertyFormGUI $form=null)
Show print view settings.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
static _getInstanceByType($a_type)
Get Singleton Instance.
This class represents a text property in a property form.
Create styles array
The data for the language used.
const TYPE_EXPORT_SETTINGS
static _getInstance()
Get instance of ilPrivacySettings.
__construct($a_parent_type)
Constructor.