4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
25 public function __construct($a_parent_type, $a_parent_obj_id = 0)
27 $this->parent_type = $a_parent_type;
28 $this->parent_obj_id = $a_parent_obj_id;
30 $this->ctrl =
$GLOBALS[
'DIC'][
'ilCtrl'];
32 $this->lng->loadLanguageModule(
'crs');
33 $this->lng->loadLanguageModule(
'mem');
51 $next_class = $this->ctrl->getNextClass($this);
52 $cmd = $this->ctrl->getCmd(
'printViewSettings');
55 switch ($next_class) {
81 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
83 $form->setFormAction($this->ctrl->getFormAction($this));
87 $fields[
'name'] =
$GLOBALS[
'DIC'][
'lng']->txt(
'name');
88 $fields[
'login'] =
$GLOBALS[
'DIC'][
'lng']->txt(
'login');
89 $fields[
'email'] =
$GLOBALS[
'DIC'][
'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) {
109 $fields[$field] =
$GLOBALS[
'DIC'][
'lng']->txt($field);
114 include_once
'./Services/User/classes/class.ilUserDefinedFields.php';
116 $exportable = array();
117 if ($this->parent_type ==
'crs') {
118 $exportable = $udf->getCourseExportableFields();
119 } elseif ($this->parent_type ==
'grp') {
120 $exportable = $udf->getGroupExportableFields();
122 foreach ((array) $exportable as $field_id => $udf_data) {
123 $fields[
'udf_' . $field_id] = $udf_data[
'field_name'];
131 $form->addItem($ufields);
134 include_once
'./Services/PrivacySecurity/classes/class.ilPrivacySettings.php';
136 if ($this->parent_type ==
'crs') {
137 if ($privacy->enabledCourseAccessTimes()) {
141 if ($this->parent_type ==
'grp') {
142 if ($privacy->enabledGroupAccessTimes()) {
151 $blank->setMulti(
true);
152 $form->addItem($blank);
157 if ($this->parent_type ==
'crs') {
162 if (!$this->parent_obj_id) {
164 $roles->addOption($subscriber);
166 $waiting_list =
new ilCheckboxOption(
$GLOBALS[
'DIC'][
'lng']->txt(
'event_user_selection_include_waiting_list'),
'wlist');
167 $roles->addOption($waiting_list);
169 $form->addItem($roles);
172 case self::TYPE_PRINT_VIEW_SETTINGS:
173 $form->addCommandButton(
'savePrintViewSettings', $this->
getLang()->txt(
'save'));
177 include_once
"Services/User/classes/class.ilUserFormSettings.php";
178 $identifier = $this->parent_type .
's_pview';
179 if ($this->parent_obj_id) {
184 if (!$settings->hasStoredEntry()) {
188 $settings->exportToForm(
$form);
199 if (
$form->checkInput()) {
200 $form->setValuesByPost();
202 include_once
"Services/User/classes/class.ilUserFormSettings.php";
207 $identifier = $this->parent_type .
's_pview';
208 if ($this->parent_obj_id) {
213 $settings->importFromForm(
$form);
216 ilUtil::sendSuccess(
$GLOBALS[
'DIC'][
'lng']->txt(
'settings_saved'));
217 $GLOBALS[
'DIC'][
'ilCtrl']->redirect($this,
'printViewSettings');
__construct($a_parent_type, $a_parent_obj_id=0)
Constructor.
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.
if(!array_key_exists('StateId', $_REQUEST)) $id
const TYPE_PRINT_VIEW_MEMBERS
if(isset($_POST['submit'])) $form
static _getInstanceByType($a_type)
Get Singleton Instance.
This class represents a text property in a property form.
const TYPE_EXPORT_SETTINGS
static _getInstance()
Get instance of ilPrivacySettings.
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.