ILIAS  release_7 Revision v7.30-3-g800a261c036
ilObjPrivacySecurityGUI Class Reference
+ Inheritance diagram for ilObjPrivacySecurityGUI:
+ Collaboration diagram for ilObjPrivacySecurityGUI:

Public Member Functions

 __construct ($a_data, $a_id, $a_call_by_reference=true, $a_prepare_output=true)
 Contructor. More...
 
 executeCommand ()
 Execute command. More...
 
 getAdminTabs ()
 Get tabs. More...
 
 showPrivacy ()
 Show Privacy settings. More...
 
 showSecurity ()
 Show Privacy settings. More...
 
 save_privacy ()
 Save privacy settings. More...
 
 save_security ()
 Save security settings. More...
 
 addToExternalSettingsForm ($a_form_id)
 
- Public Member Functions inherited from ilObjectGUI
 executeCommand ()
 execute command More...
 
 withReferences ()
 determines wether objects are referenced or not (got ref ids or not) More...
 
 setCreationMode ($a_mode=true)
 if true, a creation screen is displayed the current $_GET[ref_id] don't belong to the current class! the mode is determined in ilrepositorygui More...
 
 getCreationMode ()
 get creation mode More...
 
 prepareOutput ($a_show_subobjects=true)
 prepare output More...
 
 getAdminTabs ()
 administration tabs show only permissions and trash folder More...
 
 getHTML ()
 
 confirmedDeleteObject ()
 confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled More...
 
 cancelDeleteObject ()
 cancel deletion of object More...
 
 cancelObject ()
 cancel action and go back to previous page @access public More...
 
 createObject ()
 create new object form More...
 
 cancelCreation ()
 cancel create action and go back to repository parent More...
 
 saveObject ()
 save object More...
 
 getDidacticTemplateVar ($a_type)
 Get didactic template setting from creation screen. More...
 
 putObjectInTree (ilObject $a_obj, $a_parent_node_id=null)
 Add object to tree at given position. More...
 
 editObject ()
 edit object More...
 
 addExternalEditFormCustom (ilPropertyFormGUI $a_form)
 
 updateObject ()
 updates object entry in object_data More...
 
 getFormAction ($a_cmd, $a_formaction="")
 get form action for command (command is method name without "Object", e.g. More...
 
 isVisible ($a_ref_id, $a_type)
 
 viewObject ()
 viewObject container presentation for "administration -> repository, trash, permissions" More...
 
 deleteObject ($a_error=false)
 Display deletion confirmation screen. More...
 
 cloneAllObject ()
 Clone single (not container object) Method is overwritten in ilContainerGUI. More...
 
 redirectAfterCreation ()
 Redirect after creation, see https://docu.ilias.de/goto_docu_wiki_wpage_5035_1357.html. More...
 
 addToDeskObject ()
 @inheritDoc More...
 
 removeFromDeskObject ()
 @inheritDoc More...
 
- Public Member Functions inherited from ILIAS\Object\ImplementsCreationCallback
 callCreationCallback (\ilObject $object, \ilObjectDefinition $obj_definition, int $requested_crtcb)
 

Static Public Member Functions

static initErrorMessages ()
 
static getErrorMessage ($code)
 return error message for error code More...
 
- Static Public Member Functions inherited from ilObjectGUI
static _gotoRepositoryRoot ($a_raise_error=false)
 Goto repository root. More...
 
static _gotoRepositoryNode ($a_ref_id, $a_cmd="frameset")
 Goto repository root. More...
 

Static Private Attributes

static $ERROR_MESSAGE
 

Additional Inherited Members

- Data Fields inherited from ilObjectGUI
const ALLOWED_TAGS_IN_TITLE_AND_DESCRIPTION
 
const COPY_WIZARD_NEEDS_PAGE = 1
 
 $objDefinition
 
 $tpl
 
 $tree
 
 $lng
 
 $data
 
 $object
 
 $ref_id
 
 $obj_id
 
 $maxcount
 
 $formaction
 
 $return_location
 
 $target_frame
 
 $tab_target_script
 
 $actions
 
 $sub_objects
 
 $omit_locator = false
 
const CFORM_NEW = 1
 
const CFORM_IMPORT = 2
 
const CFORM_CLONE = 3
 
- Protected Member Functions inherited from ilObjectGUI
 getObjectService ()
 Get object service. More...
 
 assignObject ()
 
 setTitleAndDescription ()
 called by prepare output More...
 
 initHeaderAction ($a_sub_type=null, $a_sub_id=null)
 Add header action menu. More...
 
 insertHeaderAction ($a_list_gui)
 Insert header action into main template. More...
 
 addHeaderAction ()
 Add header action menu. More...
 
 redrawHeaderActionObject ()
 Ajax call: redraw action header only. More...
 
 setTabs ()
 set admin tabs @access public More...
 
 setAdminTabs ()
 set admin tabs @access public More...
 
 setLocator ()
 set Locator More...
 
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 omitLocator ($a_omit=true)
 
 addAdminLocatorItems ($a_do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 initCreationForms ($a_new_type)
 Init creation froms. More...
 
 getCreationFormsHTML (array $a_forms)
 Get HTML for creation forms (accordion) More...
 
 initCreateForm ($a_new_type)
 Init object creation form. More...
 
 initDidacticTemplate (ilPropertyFormGUI $form)
 Show didactic template types. More...
 
 addDidacticTemplateOptions (array &$a_options)
 Add custom templates. More...
 
 afterSave (ilObject $a_new_object)
 Post (successful) object creation hook. More...
 
 initEditForm ()
 Init object edit form. More...
 
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form. More...
 
 getEditFormValues ()
 Get values for edit form. More...
 
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields. More...
 
 validateCustom (ilPropertyFormGUI $a_form)
 Validate custom values (if not possible with checkInput()) More...
 
 updateCustom (ilPropertyFormGUI $a_form)
 Insert custom update form values into object. More...
 
 afterUpdate ()
 Post (successful) object update hook. More...
 
 initImportForm ($a_new_type)
 Init object import form. More...
 
 importFileObject ($parent_id=null, $a_catch_errors=true)
 Import. More...
 
 afterImport (ilObject $a_new_object)
 Post (successful) object import hook. More...
 
 setFormAction ($a_cmd, $a_formaction)
 set specific form action for command More...
 
 getReturnLocation ($a_cmd, $a_location="")
 get return location for command (command is method name without "Object", e.g. More...
 
 setReturnLocation ($a_cmd, $a_location)
 set specific return location for command More...
 
 getTargetFrame ($a_cmd, $a_target_frame="")
 get target frame for command (command is method name without "Object", e.g. More...
 
 setTargetFrame ($a_cmd, $a_target_frame)
 set specific target frame for command More...
 
 showPossibleSubObjects ()
 show possible subobjects (pulldown menu) More...
 
 getTemplateFile ($a_cmd, $a_type="")
 get a template blockfile format: tpl. More...
 
 getTabs ()
 get tabs abstract method. More...
 
 __showButton ($a_cmd, $a_text, $a_target='')
 
 hitsperpageObject ()
 
__initTableGUI ()
 
 __setTableGUIBasicData (&$tbl, &$result_set, $a_from="")
 standard implementation for tables use 'from' variable use different initial setting of table More...
 
 redirectToRefId ($a_ref_id, $a_cmd="")
 redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current $_GET["ref_id"] value More...
 
 fillCloneTemplate ($a_tpl_varname, $a_type)
 Fill object clone template This method can be called from any object GUI class that wants to offer object cloning. More...
 
 getCenterColumnHTML ()
 Get center column. More...
 
 getRightColumnHTML ()
 Display right column. More...
 
 setColumnSettings (ilColumnGUI $column_gui)
 May be overwritten in subclasses. More...
 
 checkPermission ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission and redirect on error. More...
 
 checkPermissionBool ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission. More...
 
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files. More...
 
 handleAutoRating (ilObject $a_new_obj)
 Activate rating automatically if parent container setting. More...
 
- Protected Attributes inherited from ilObjectGUI
const UPLOAD_TYPE_LOCAL = 1
 
const UPLOAD_TYPE_UPLOAD_DIRECTORY = 2
 
 $ilErr
 
 $locator
 
 $user
 
 $access
 
 $rbacsystem
 
 $settings
 
 $rbacreview
 
 $toolbar
 
 $tmp_import_dir
 
 $tabs_gui = null
 
 $ctrl
 
 $object_service
 
 $favourites
 
 $request
 

Detailed Description

Definition at line 18 of file class.ilObjPrivacySecurityGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilObjPrivacySecurityGUI::__construct (   $a_data,
  $a_id,
  $a_call_by_reference = true,
  $a_prepare_output = true 
)

Contructor.

@access public

Definition at line 26 of file class.ilObjPrivacySecurityGUI.php.

27 {
28 $this->type = 'ps';
29 parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
30
32 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References ILIAS\GlobalScreen\Provider\__construct(), and initErrorMessages().

+ Here is the call graph for this function:

Member Function Documentation

◆ addToExternalSettingsForm()

ilObjPrivacySecurityGUI::addToExternalSettingsForm (   $a_form_id)

Definition at line 397 of file class.ilObjPrivacySecurityGUI.php.

398 {
399 switch ($a_form_id) {
401
403
404 $subitems = array(
405 'ps_export_course' => array($privacy->enabledCourseExport(), ilAdministrationSettingsFormHandler::VALUE_BOOL),
406 'ps_export_confirm' => array($privacy->courseConfirmationRequired(), ilAdministrationSettingsFormHandler::VALUE_BOOL),
407 'ps_show_crs_access' => array($privacy->enabledCourseAccessTimes(), ilAdministrationSettingsFormHandler::VALUE_BOOL),
408 'ps_participants_list_courses' => [$privacy->participantsListInCoursesEnabled(), \ilAdministrationSettingsFormHandler::VALUE_BOOL]
409 );
410 $fields = array(
411 'ps_profile_export' => array(null, null, $subitems)
412 );
413 return array(array("showPrivacy", $fields));
414
416
418
419 $subitems = array(
420 'ps_export_groups' => array($privacy->enabledGroupExport(), ilAdministrationSettingsFormHandler::VALUE_BOOL),
421 'ps_export_confirm_group' => array($privacy->groupConfirmationRequired(), ilAdministrationSettingsFormHandler::VALUE_BOOL),
422 'ps_show_grp_access' => array($privacy->enabledGroupAccessTimes(), ilAdministrationSettingsFormHandler::VALUE_BOOL)
423 );
424 $fields = array(
425 'ps_profile_export' => array(null, null, $subitems)
426 );
427 return array(array("showPrivacy", $fields));
428 }
429 }
static _getInstance()
Get instance of ilPrivacySettings.

References ilPrivacySettings\_getInstance(), ilAdministrationSettingsFormHandler\FORM_COURSE, ilAdministrationSettingsFormHandler\FORM_GROUP, and ilAdministrationSettingsFormHandler\VALUE_BOOL.

+ Here is the call graph for this function:

◆ executeCommand()

ilObjPrivacySecurityGUI::executeCommand ( )

Execute command.

@access public

Reimplemented from ilObjectGUI.

Definition at line 67 of file class.ilObjPrivacySecurityGUI.php.

68 {
69 global $DIC;
70
71 $next_class = $this->ctrl->getNextClass($this);
72 $cmd = $this->ctrl->getCmd();
73
74 $this->prepareOutput();
75
76 if (!$DIC->rbac()->system()->checkAccess('visible,read', $this->object->getRefId())) {
77 $DIC['ilErr']->raiseError($this->lng->txt('no_permission'), $DIC['ilErr']->WARNING);
78 }
79
80 switch ($next_class) {
81 case 'ilpermissiongui':
82 $this->tabs_gui->setTabActive('perm_settings');
83 include_once("Services/AccessControl/classes/class.ilPermissionGUI.php");
84 $perm_gui = new ilPermissionGUI($this);
85 $ret = &$this->ctrl->forwardCommand($perm_gui);
86 break;
87
88 default:
89 if (!$cmd || $cmd == 'view') {
90 $cmd = "showPrivacy";
91 }
92
93 $this->$cmd();
94 break;
95 }
96 return true;
97 }
prepareOutput($a_show_subobjects=true)
prepare output
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
global $DIC
Definition: goto.php:24
$ret
Definition: parser.php:6

References $DIC, $ret, and ilObjectGUI\prepareOutput().

+ Here is the call graph for this function:

◆ getAdminTabs()

ilObjPrivacySecurityGUI::getAdminTabs ( )

Get tabs.

@access public

Reimplemented from ilObjectGUI.

Definition at line 105 of file class.ilObjPrivacySecurityGUI.php.

106 {
107 global $DIC;
108
109 $rbacsystem = $DIC['rbacsystem'];
110
111 if ($rbacsystem->checkAccess("visible,read", $this->object->getRefId())) {
112 $this->tabs_gui->addTarget(
113 "show_privacy",
114 $this->ctrl->getLinkTarget($this, "showPrivacy"),
115 'showPrivacy'
116 );
117 $this->tabs_gui->addTarget(
118 "show_security",
119 $this->ctrl->getLinkTarget($this, "showSecurity"),
120 'showSecurity'
121 );
122 }
123
124 if ($rbacsystem->checkAccess('edit_permission', $this->object->getRefId())) {
125 $this->tabs_gui->addTarget(
126 "perm_settings",
127 $this->ctrl->getLinkTargetByClass('ilpermissiongui', "perm"),
128 array(),
129 'ilpermissiongui'
130 );
131 }
132 }

References $DIC, and ilObjectGUI\$rbacsystem.

◆ getErrorMessage()

static ilObjPrivacySecurityGUI::getErrorMessage (   $code)
static

return error message for error code

Parameters
int$code
Returns
string

Definition at line 391 of file class.ilObjPrivacySecurityGUI.php.

References $ERROR_MESSAGE, and initErrorMessages().

Referenced by save_privacy(), and ilSecuritySettings\validate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initErrorMessages()

static ilObjPrivacySecurityGUI::initErrorMessages ( )
static

Definition at line 34 of file class.ilObjPrivacySecurityGUI.php.

35 {
36 global $DIC;
37
38 $lng = $DIC['lng'];
39
40 if (is_array(self::$ERROR_MESSAGE)) {
41 return;
42 }
43
44 $lng->loadLanguageModule('ps');
45
47 ilSecuritySettings::$SECURITY_SETTINGS_ERR_CODE_AUTO_HTTPS => $lng->txt("ps_error_message_https_header_missing"),
50 ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MIN_LENGTH => $lng->txt('ps_error_message_invalid_password_min_length'),
51 ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MAX_LENGTH => $lng->txt('ps_error_message_invalid_password_max_length'),
52 ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MAX_AGE => $lng->txt('ps_error_message_invalid_password_max_age'),
53 ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_INVALID_LOGIN_MAX_ATTEMPTS => $lng->txt('ps_error_message_invalid_login_max_attempts'),
54 ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_PASSWORD_MIN_LENGTH_MIN1 => $lng->txt('ps_error_message_password_min1_because_chars'),
55 ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_PASSWORD_MIN_LENGTH_MIN2 => $lng->txt('ps_error_message_password_min2_because_chars_numbers'),
56 ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_PASSWORD_MIN_LENGTH_MIN3 => $lng->txt('ps_error_message_password_min3_because_chars_numbers_sc'),
58 );
59 }
const SECURITY_SETTINGS_ERR_CODE_PASSWORD_MIN_LENGTH_MIN2
const SECURITY_SETTINGS_ERR_CODE_INVALID_LOGIN_MAX_ATTEMPTS
static $SECURITY_SETTINGS_ERR_CODE_HTTP_NOT_AVAILABLE
const SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MAX_LENGTH
const SECURITY_SETTINGS_ERR_CODE_PASSWORD_MIN_LENGTH_MIN3
const SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MAX_AGE
const SECURITY_SETTINGS_ERR_CODE_PASSWORD_MAX_LENGTH_LESS_MIN_LENGTH
const SECURITY_SETTINGS_ERR_CODE_PASSWORD_MIN_LENGTH_MIN1
const SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MIN_LENGTH
static $SECURITY_SETTINGS_ERR_CODE_HTTPS_NOT_AVAILABLE

References $DIC, $ERROR_MESSAGE, ilObjectGUI\$lng, ilSecuritySettings\$SECURITY_SETTINGS_ERR_CODE_AUTO_HTTPS, ilSecuritySettings\$SECURITY_SETTINGS_ERR_CODE_HTTP_NOT_AVAILABLE, ilSecuritySettings\$SECURITY_SETTINGS_ERR_CODE_HTTPS_NOT_AVAILABLE, ilSecuritySettings\SECURITY_SETTINGS_ERR_CODE_INVALID_LOGIN_MAX_ATTEMPTS, ilSecuritySettings\SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MAX_AGE, ilSecuritySettings\SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MAX_LENGTH, ilSecuritySettings\SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MIN_LENGTH, ilSecuritySettings\SECURITY_SETTINGS_ERR_CODE_PASSWORD_MAX_LENGTH_LESS_MIN_LENGTH, ilSecuritySettings\SECURITY_SETTINGS_ERR_CODE_PASSWORD_MIN_LENGTH_MIN1, ilSecuritySettings\SECURITY_SETTINGS_ERR_CODE_PASSWORD_MIN_LENGTH_MIN2, and ilSecuritySettings\SECURITY_SETTINGS_ERR_CODE_PASSWORD_MIN_LENGTH_MIN3.

Referenced by __construct(), and getErrorMessage().

+ Here is the caller graph for this function:

◆ save_privacy()

ilObjPrivacySecurityGUI::save_privacy ( )

Save privacy settings.

@access public

Definition at line 262 of file class.ilObjPrivacySecurityGUI.php.

263 {
264 global $DIC;
265
266 $ilErr = $DIC['ilErr'];
267 $ilAccess = $DIC['ilAccess'];
268 $ilSetting = $DIC['ilSetting'];
269
270 if (!$ilAccess->checkAccess('write', '', $this->object->getRefId())) {
271 $ilErr->raiseError($this->lng->txt('no_permission'), $ilErr->WARNING);
272 }
273
274 if ((int) $_POST['rbac_log_age'] > 24) {
275 $_POST['rbac_log_age'] = 24;
276 } elseif ((int) $_POST['rbac_log_age'] < 1) {
277 $_POST['rbac_log_age'] = 1;
278 }
279
280 $_POST['profile_protection'] = isset($_POST['profile_protection']) ? $_POST['profile_protection'] : array();
281
283
284 // to determine if agreements need to be reset - see below
285 $old_settings = array(
286 'export_course' => $privacy->enabledCourseExport(),
287 'export_group' => $privacy->enabledGroupExport(),
288 'export_confirm_course' => $privacy->courseConfirmationRequired(),
289 'export_confirm_group' => $privacy->groupConfirmationRequired(),
290 'crs_access_times' => $privacy->enabledCourseAccessTimes(),
291 'grp_access_times' => $privacy->enabledGroupAccessTimes(),
292 'participants_list_courses' => $privacy->participantsListInCoursesEnabled()
293 );
294
295 $privacy->enableCourseExport((int) in_array('export_course', $_POST['profile_protection']));
296 $privacy->enableGroupExport((int) in_array('export_group', $_POST['profile_protection']));
297 $privacy->setCourseConfirmationRequired((int) in_array('export_confirm_course', $_POST['profile_protection']));
298 $privacy->setGroupConfirmationRequired((int) in_array('export_confirm_group', $_POST['profile_protection']));
299 $privacy->showGroupAccessTimes((int) in_array('grp_access_times', $_POST['profile_protection']));
300 $privacy->showCourseAccessTimes((int) in_array('crs_access_times', $_POST['profile_protection']));
301 $privacy->enableParticipantsListInCourses((bool) in_array('participants_list_courses', $_POST['profile_protection']));
302
303 // validate settings
304 $code = $privacy->validate();
305
306 // if error code != 0, display error and do not save
307 if ($code != 0) {
308 $msg = $this->getErrorMessage($code);
310 } else {
311 $privacy->save();
312
313 // reset agreements?
314 $do_reset = false;
315 if (!$old_settings['export_course'] && $privacy->enabledCourseExport()) {
316 $do_reset = true;
317 }
318 if (!$do_reset && !$old_settings['export_group'] && $privacy->enabledGroupExport()) {
319 $do_reset = true;
320 }
321 if (!$do_reset && !$old_settings['export_confirm_course'] && $privacy->courseConfirmationRequired()) {
322 $do_reset = true;
323 }
324 if (!$do_reset && !$old_settings['export_confirm_group'] && $privacy->groupConfirmationRequired()) {
325 $do_reset = true;
326 }
327 if (!$do_reset && !$old_settings['crs_access_times'] && $privacy->enabledCourseAccessTimes()) {
328 $do_reset = true;
329 }
330 if (!$do_reset && !$old_settings['grp_access_times'] && $privacy->enabledGroupAccessTimes()) {
331 $do_reset = true;
332 }
333 if ($do_reset) {
334 include_once('Services/Membership/classes/class.ilMemberAgreement.php');
336 }
337 ilUtil::sendSuccess($this->lng->txt('settings_saved'));
338 }
339
340 $this->showPrivacy();
341 }
$_POST["username"]
static _reset()
Reset all.
static getErrorMessage($code)
return error message for error code
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
global $ilSetting
Definition: privfeed.php:17

References $_POST, $DIC, ilObjectGUI\$ilErr, $ilSetting, ilPrivacySettings\_getInstance(), ilMemberAgreement\_reset(), getErrorMessage(), ilUtil\sendFailure(), and showPrivacy().

+ Here is the call graph for this function:

◆ save_security()

ilObjPrivacySecurityGUI::save_security ( )

Save security settings.

@access public

Definition at line 349 of file class.ilObjPrivacySecurityGUI.php.

350 {
351 global $DIC;
352
353 $ilErr = $DIC['ilErr'];
354 $ilAccess = $DIC['ilAccess'];
355 $ilSetting = $DIC['ilSetting'];
356 $rbacreview = $DIC['rbacreview'];
357 $ilUser = $DIC['ilUser'];
358
359 if (!$ilAccess->checkAccess('write', '', $this->object->getRefId())) {
360 $ilErr->raiseError($this->lng->txt('no_permission'), $ilErr->WARNING);
361 }
362
363 /*
364 $security = ilSecuritySettings::_getInstance();
365
366 $code = $security->validate();
367
368 // if error code != 0, display error and do not save
369 if ($code != 0)
370 {
371 $msg = $this->getErrorMessage ($code);
372 ilUtil::sendFailure($msg);
373 } else
374 {
375 $security->save();
376 ilUtil::sendSuccess($this->lng->txt('settings_saved'));
377 }
378 */
379
380 $this->showSecurity();
381 }
$ilUser
Definition: imgupload.php:18

References $DIC, ilObjectGUI\$ilErr, $ilSetting, $ilUser, ilObjectGUI\$rbacreview, and showSecurity().

+ Here is the call graph for this function:

◆ showPrivacy()

ilObjPrivacySecurityGUI::showPrivacy ( )

Show Privacy settings.

@access public

Definition at line 139 of file class.ilObjPrivacySecurityGUI.php.

140 {
142
143 $this->tabs_gui->setTabActive('show_privacy');
144
145 include_once("./Services/Form/classes/class.ilPropertyFormGUI.php");
146 $form = new ilPropertyFormGUI();
147 $form->setFormAction($this->ctrl->getFormAction($this));
148 $form->setTitle($this->lng->txt('ps_privacy_protection'));
149
150 include_once('Services/Membership/classes/class.ilMemberAgreement.php');
152 ilUtil::sendInfo($this->lng->txt('ps_warning_modify'));
153 }
154
155 $value = array();
156 if ($privacy->enabledCourseExport()) {
157 $value[] = "export_course";
158 }
159 if ($privacy->enabledGroupExport()) {
160 $value[] = "export_group";
161 }
162 if ($privacy->courseConfirmationRequired()) {
163 $value[] = "export_confirm_course";
164 }
165 if ($privacy->groupConfirmationRequired()) {
166 $value[] = "export_confirm_group";
167 }
168 if ($privacy->enabledGroupAccessTimes()) {
169 $value[] = "grp_access_times";
170 }
171 if ($privacy->enabledCourseAccessTimes()) {
172 $value[] = "crs_access_times";
173 }
174 if ($privacy->participantsListInCoursesEnabled()) {
175 $value[] = 'participants_list_courses';
176 }
177 $group = new ilCheckboxGroupInputGUI($this->lng->txt('ps_profile_export'), 'profile_protection');
178 $group->setValue($value);
179 $check = new ilCheckboxOption();
180 $check->setTitle($this->lng->txt('ps_export_course'));
181 $check->setValue('export_course');
182 $group->addOption($check);
183 $check = new ilCheckboxOption();
184 $check->setTitle($this->lng->txt('ps_export_groups'));
185 $check->setValue('export_group');
186 $group->addOption($check);
187 $check = new ilCheckboxOption();
188 $check->setTitle($this->lng->txt('ps_export_confirm'));
189 $check->setValue('export_confirm_course');
190 $group->addOption($check);
191 $check = new ilCheckboxOption();
192 $check->setTitle($this->lng->txt('ps_export_confirm_group'));
193 $check->setValue('export_confirm_group');
194 $group->addOption($check);
195 $check = new ilCheckboxOption();
196 $check->setTitle($this->lng->txt('ps_show_grp_access'));
197 $check->setValue('grp_access_times');
198 $group->addOption($check);
199 $check = new ilCheckboxOption();
200 $check->setTitle($this->lng->txt('ps_show_crs_access'));
201 $check->setValue('crs_access_times');
202 $group->addOption($check);
203 $form->addItem($group);
204 $check = new \ilCheckboxOption();
205 $check->setTitle($this->lng->txt('ps_participants_list_courses'));
206 $check->setValue('participants_list_courses');
207 $group->addOption($check);
208
209 include_once "Services/Administration/classes/class.ilAdministrationSettingsFormHandler.php";
212 $form,
213 $this
214 );
215
216 if ($this->checkPermissionBool("write")) {
217 $form->addCommandButton('save_privacy', $this->lng->txt('save'));
218 }
219 $this->tpl->setContent($form->getHTML());
220 }
static addFieldsToForm($a_form_id, ilPropertyFormGUI $a_form, ilObjectGUI $a_parent_gui)
This class represents a property in a property form.
This class represents an option in a checkbox group.
static _hasAgreements()
Check if there is any user agreement.
checkPermissionBool($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission.
This class represents a property form user interface.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.

References ilPrivacySettings\_getInstance(), ilMemberAgreement\_hasAgreements(), ilAdministrationSettingsFormHandler\addFieldsToForm(), ilObjectGUI\checkPermissionBool(), ilAdministrationSettingsFormHandler\FORM_PRIVACY, and ilUtil\sendInfo().

Referenced by save_privacy().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showSecurity()

ilObjPrivacySecurityGUI::showSecurity ( )

Show Privacy settings.

@access public

Definition at line 227 of file class.ilObjPrivacySecurityGUI.php.

228 {
229 global $DIC;
230
231 $ilSetting = $DIC['ilSetting'];
232 $ilUser = $DIC['ilUser'];
233 $rbacreview = $DIC['rbacreview'];
234
235 include_once("./Services/Form/classes/class.ilPropertyFormGUI.php");
236
238
239 $this->tabs_gui->setTabActive('show_security');
240
241 $form = new ilPropertyFormGUI();
242 $form->setFormAction($this->ctrl->getFormAction($this));
243 $form->setTitle($this->lng->txt('ps_security_protection'));
244
245 include_once "Services/Administration/classes/class.ilAdministrationSettingsFormHandler.php";
248 $form,
249 $this
250 );
251
252 // $form->addCommandButton('save_security',$this->lng->txt('save'));
253 $this->tpl->setContent($form->getHTML());
254 }
static _getInstance()
Get instance of ilSecuritySettings.

References $DIC, $ilSetting, $ilUser, ilObjectGUI\$rbacreview, ilSecuritySettings\_getInstance(), ilAdministrationSettingsFormHandler\addFieldsToForm(), and ilAdministrationSettingsFormHandler\FORM_SECURITY.

Referenced by save_security().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $ERROR_MESSAGE

ilObjPrivacySecurityGUI::$ERROR_MESSAGE
staticprivate

Definition at line 20 of file class.ilObjPrivacySecurityGUI.php.

Referenced by getErrorMessage(), and initErrorMessages().


The documentation for this class was generated from the following file: