ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
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.
 executeCommand ()
 Execute command.
 getAdminTabs ()
 Get tabs.
 showPrivacy ()
 Show Privacy settings.
 showSecurity ()
 Show Privacy settings.
 save_privacy ()
 Save privacy settings.
 save_security ()
 Save security settings.
- Public Member Functions inherited from ilObjectGUI
 ilObjectGUI ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
 Constructor public.
 withReferences ()
 determines wether objects are referenced or not (got ref ids or not)
 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
 getCreationMode ()
 get creation mode
 getAdminTabs (&$tabs_gui)
 administration tabs show only permissions and trash folder
 getHTML ()
 undeleteObject ()
 Get objects back from trash.
 confirmedDeleteObject ()
 confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled
 cancelDeleteObject ()
 cancel deletion of object
 removeFromSystemObject ()
 remove objects from trash bin and all entries therefore every object needs a specific deleteObject() method
 cancelObject ($in_rep=false)
 cancel action and go back to previous page public
 createObject ()
 create new object form
 cancelCreation ()
 cancel create action and go back to repository parent
 saveObject ()
 save object
 editObject ()
 edit object
 updateObject ()
 updates object entry in object_data
 getFormAction ($a_cmd, $a_formaction="")
 get form action for command (command is method name without "Object", e.g.
 isVisible ($a_ref_id, $a_type)
 viewObject ()
 list childs of current object
 deleteObject ($a_error=false)
 Display deletion confirmation screen.
 trashObject ()
 Show trash content of object.
 getTemplateFile ($a_cmd, $a_type="")
 get a template blockfile format: tpl.
 cloneAllObject ()
 Clone single (not container object) Method is overwritten in ilContainerGUI.
 copyWizardHasOptions ($a_mode)
 Check if there is any modules specific option.

Static Private Member Functions

static getErrorMessage ($code)
 return error message for error code

Static Private Attributes

static $ERROR_MESSAGE

Additional Inherited Members

- Data Fields inherited from ilObjectGUI
const COPY_WIZARD_NEEDS_PAGE = 1
 $ilias
 $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
 assignObject ()
 prepareOutput ()
 prepare output
 setTitleAndDescription ()
 called by prepare output
 initHeaderAction ($a_sub_type=null, $a_sub_id=null)
 Add header action menu.
 insertHeaderAction ($a_list_gui)
 Insert header action into main template.
 addHeaderAction ()
 Add header action menu.
 redrawHeaderActionObject ()
 Ajax call: redraw action header only.
 showUpperIcon ()
 setTabs ()
 set admin tabs public
 setAdminTabs ()
 set admin tabs public
 setLocator ()
 set Locator
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded)
 omitLocator ($a_omit=true)
 addAdminLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded)
 initCreationForms ($a_new_type)
 Init creation froms.
 getCreationFormsHTML (array $a_forms)
 Get HTML for creation forms (accordion)
 initCreateForm ($a_new_type)
 Init object creation form.
 initDidacticTemplate (ilPropertyFormGUI $form)
 Show didactic template types.
 addDidacticTemplateOptions (array &$a_options)
 Add custom templates.
 getDidacticTemplateVar ($a_type)
 Get didactic template setting from creation screen.
 putObjectInTree (ilObject $a_obj, $a_parent_node_id=null)
 Add object to tree at given position.
 afterSave (ilObject $a_new_object)
 Post (successful) object creation hook.
 initEditForm ()
 Init object edit form.
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form.
 getEditFormValues ()
 Get values for edit form.
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields.
 updateCustom (ilPropertyFormGUI $a_form)
 Insert custom update form values into object.
 afterUpdate ()
 Post (successful) object update hook.
 initImportForm ($a_new_type)
 Init object import form.
 importFileObject ($parent_id=null)
 Import.
 afterImport (ilObject $a_new_object)
 Post (successful) object import hook.
 setFormAction ($a_cmd, $a_formaction)
 set specific form action for command
 getReturnLocation ($a_cmd, $a_location="")
 get return location for command (command is method name without "Object", e.g.
 setReturnLocation ($a_cmd, $a_location)
 set specific return location for command
 getTargetFrame ($a_cmd, $a_target_frame="")
 get target frame for command (command is method name without "Object", e.g.
 setTargetFrame ($a_cmd, $a_target_frame)
 set specific target frame for command
 showPossibleSubObjects ()
 show possible subobjects (pulldown menu)
 getTitlesByRefId ($a_ref_ids)
 get Titles of objects this method is used for error messages in methods cut/copy/paste
 getTabs (&$tabs_gui)
 get tabs abstract method.
 __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
 __showClipboardTable ($a_result_set, $a_from="")
 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
 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.
 getCenterColumnHTML ()
 Get center column.
 getRightColumnHTML ()
 Display right column.
 setColumnSettings ($column_gui)
 May be overwritten in subclasses.
 checkPermission ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission and redirect on error.
 checkPermissionBool ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission.

Detailed Description

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

Constructor & Destructor Documentation

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

Contructor.

public

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

References $ERROR_MESSAGE, ilSecuritySettings\$SECURITY_SETTINGS_ERR_CODE_AUTO_HTTPS, ilSecuritySettings\$SECURITY_SETTINGS_ERR_CODE_HTTP_NOT_AVAILABLE, ilSecuritySettings\$SECURITY_SETTINGS_ERR_CODE_HTTPS_NOT_AVAILABLE, ilObjectGUI\ilObjectGUI(), 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_MIN2, and ilSecuritySettings\SECURITY_SETTINGS_ERR_CODE_PASSWORD_MIN_LENGTH_MIN3.

{
$this->type = 'ps';
parent::ilObjectGUI($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
$this->lng->loadLanguageModule('ps');
ilSecuritySettings::$SECURITY_SETTINGS_ERR_CODE_AUTO_HTTPS => $this->lng->txt("ps_error_message_https_header_missing"),
ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MIN_LENGTH => $this->lng->txt('ps_error_message_invalid_password_min_length'),
ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MAX_LENGTH => $this->lng->txt('ps_error_message_invalid_password_max_length'),
ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MAX_AGE => $this->lng->txt('ps_error_message_invalid_password_max_age'),
ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_INVALID_LOGIN_MAX_ATTEMPTS => $this->lng->txt('ps_error_message_invalid_login_max_attempts'),
ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_PASSWORD_MIN_LENGTH_MIN2 => $this->lng->txt('ps_error_message_password_min2_because_chars_numbers'),
ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_PASSWORD_MIN_LENGTH_MIN3 => $this->lng->txt('ps_error_message_password_min3_because_chars_numbers_sc'),
ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_PASSWORD_MAX_LENGTH_LESS_MIN_LENGTH => $this->lng->txt('ps_error_message_password_max_less_min')
);
}

+ Here is the call graph for this function:

Member Function Documentation

ilObjPrivacySecurityGUI::executeCommand ( )

Execute command.

public

Reimplemented from ilObjectGUI.

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

References $cmd, $ilErr, $ret, and ilObjectGUI\prepareOutput().

{
global $rbacsystem,$ilErr,$ilAccess;
$next_class = $this->ctrl->getNextClass($this);
$cmd = $this->ctrl->getCmd();
$this->prepareOutput();
if(!$ilAccess->checkAccess('read','',$this->object->getRefId()))
{
$ilErr->raiseError($this->lng->txt('no_permission'),$ilErr->WARNING);
}
switch($next_class)
{
case 'ilpermissiongui':
$this->tabs_gui->setTabActive('perm_settings');
include_once("Services/AccessControl/classes/class.ilPermissionGUI.php");
$perm_gui =& new ilPermissionGUI($this);
$ret =& $this->ctrl->forwardCommand($perm_gui);
break;
default:
if(!$cmd || $cmd == 'view')
{
$cmd = "showPrivacy";
}
$this->$cmd();
break;
}
return true;
}

+ Here is the call graph for this function:

ilObjPrivacySecurityGUI::getAdminTabs ( )

Get tabs.

public

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

{
global $rbacsystem;
if ($rbacsystem->checkAccess("visible,read",$this->object->getRefId()))
{
$this->tabs_gui->addTarget("show_privacy",
$this->ctrl->getLinkTarget($this, "showPrivacy"),
'showPrivacy');
$this->tabs_gui->addTarget("show_security",
$this->ctrl->getLinkTarget($this, "showSecurity"),
'showSecurity');
}
if ($rbacsystem->checkAccess('edit_permission',$this->object->getRefId()))
{
$this->tabs_gui->addTarget("perm_settings",
$this->ctrl->getLinkTargetByClass('ilpermissiongui',"perm"),
array(),'ilpermissiongui');
}
}
static ilObjPrivacySecurityGUI::getErrorMessage (   $code)
staticprivate

return error message for error code

Parameters
int$code
Returns
string

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

References $ERROR_MESSAGE.

Referenced by save_privacy(), and save_security().

+ Here is the caller graph for this function:

ilObjPrivacySecurityGUI::save_privacy ( )

Save privacy settings.

public

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

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

{
global $ilErr,$ilAccess, $ilSetting;
if(!$ilAccess->checkAccess('write','',$this->object->getRefId()))
{
$ilErr->raiseError($this->lng->txt('no_permission'),$ilErr->WARNING);
}
if((int) $_POST['rbac_log_age'] > 24)
{
$_POST['rbac_log_age'] = 24;
}
else if((int) $_POST['rbac_log_age'] < 1)
{
$_POST['rbac_log_age'] = 1;
}
$_POST['profile_protection'] = isset($_POST['profile_protection']) ? $_POST['profile_protection'] : array();
$privacy->enableCourseExport((int) in_array('export_course', $_POST['profile_protection']));
$privacy->enableGroupExport((int) in_array('export_group', $_POST['profile_protection']));
$privacy->setCourseConfirmationRequired((int) in_array('export_confirm_course', $_POST['profile_protection']));
$privacy->setGroupConfirmationRequired((int) in_array('export_confirm_group', $_POST['profile_protection']));
$privacy->showGroupAccessTimes((int) in_array('grp_access_times', $_POST['profile_protection']));
$privacy->showCourseAccessTimes((int) in_array('crs_access_times', $_POST['profile_protection']));
$privacy->enableForaStatistics ((int) $_POST['fora_statistics']);
$privacy->enableAnonymousFora ((int) $_POST['anonymous_fora']);
$privacy->enableRbacLog((int) $_POST['rbac_log']);
$privacy->setRbacLogAge((int) $_POST['rbac_log_age']);
$privacy->enableSahsProtocolData((int) $_POST['enable_sahs_pd']);
// validate settings
$code = $privacy->validate();
// if error code != 0, display error and do not save
if ($code != 0)
{
$msg = $this->getErrorMessage ($code);
}
else
{
$privacy->save();
include_once('Services/Membership/classes/class.ilMemberAgreement.php');
ilUtil::sendSuccess($this->lng->txt('settings_saved'));
}
$this->showPrivacy();
}

+ Here is the call graph for this function:

ilObjPrivacySecurityGUI::save_security ( )

Save security settings.

public

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

References $_POST, $ilErr, $ilSetting, ilSecuritySettings\_getInstance(), getErrorMessage(), ilUtil\sendFailure(), ilUtil\sendSuccess(), showSecurity(), and ilUtil\stripSlashes().

{
global $ilErr,$ilAccess, $ilSetting;
if(!$ilAccess->checkAccess('write','',$this->object->getRefId()))
{
$ilErr->raiseError($this->lng->txt('no_permission'),$ilErr->WARNING);
}
// auto https detection settings
$security->setAutomaticHTTPSEnabled((int) $_POST["auto_https_detect_enabled"]);
$security->setAutomaticHTTPSHeaderName(ilUtil::stripSlashes($_POST["auto_https_detect_header_name"]));
$security->setAutomaticHTTPSHeaderValue(ilUtil::stripSlashes($_POST["auto_https_detect_header_value"]));
// prevention of simultaneous logins with the same account
$security->setPreventionOfSimultaneousLogins((bool)$_POST['ps_prevent_simultaneous_logins']);
// ilias https handling settings
$security->setHTTPSEnabled($_POST["https_enabled"]);
// account security settings
$security->setAccountSecurityMode((int) $_POST["account_security_mode"]);
$security->setPasswordCharsAndNumbersEnabled((bool) $_POST["password_chars_and_numbers_enabled"]);
$security->setPasswordSpecialCharsEnabled((bool) $_POST["password_special_chars_enabled"]);
$security->setPasswordMinLength((int) $_POST["password_min_length"]);
$security->setPasswordMaxLength((int) $_POST["password_max_length"]);
$security->setPasswordMaxAge((int) $_POST["password_max_age"]);
$security->setLoginMaxAttempts((int) $_POST["login_max_attempts"]);
// change password on first login settings
$security->setPasswordChangeOnFirstLoginEnabled((bool) $_POST['password_change_on_first_login_enabled']);
// file suffic replacements
$ilSetting->set("suffix_repl_additional", $_POST["suffix_repl_additional"]);
// validate settings
$code = $security->validate();
// if error code != 0, display error and do not save
if ($code != 0)
{
$msg = $this->getErrorMessage ($code);
} else
{
$security->save();
ilUtil::sendSuccess($this->lng->txt('settings_saved'));
}
$this->showSecurity();
}

+ Here is the call graph for this function:

ilObjPrivacySecurityGUI::showPrivacy ( )

Show Privacy settings.

public

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

References ilPrivacySettings\_getInstance(), ilMemberAgreement\_hasAgreements(), ilFormPropertyGUI\setInfo(), and ilCheckboxGroupInputGUI\setValue().

Referenced by save_privacy().

{
$this->tabs_gui->setTabActive('show_privacy');
include_once("./Services/Form/classes/class.ilPropertyFormGUI.php");
$form = new ilPropertyFormGUI();
$form->setFormAction($this->ctrl->getFormAction($this));
$form->setTitle($this->lng->txt('ps_privacy_protection'));
include_once('Services/Membership/classes/class.ilMemberAgreement.php');
{
$html = new ilNonEditableValueGUI();
$html->setValue($this->lng->txt('ps_warning_modify'));
$form->addItem($html);
}
$value = array();
if($privacy->enabledCourseExport())
{
$value[] = "export_course";
}
if($privacy->enabledGroupExport())
{
$value[] = "export_group";
}
if($privacy->courseConfirmationRequired())
{
$value[] = "export_confirm_course";
}
if($privacy->groupConfirmationRequired())
{
$value[] = "export_confirm_group";
}
if($privacy->enabledGroupAccessTimes())
{
$value[] = "grp_access_times";
}
if($privacy->enabledCourseAccessTimes())
{
$value[] = "crs_access_times";
}
$group = new ilCheckboxGroupInputGUI($this->lng->txt('ps_profile_export'),'profile_protection');
$group->setValue($value);
$check = new ilCheckboxOption();
$check->setTitle($this->lng->txt('ps_export_course'));
$check->setValue('export_course');
$group->addOption($check);
$check = new ilCheckboxOption();
$check->setTitle($this->lng->txt('ps_export_groups'));
$check->setValue('export_group');
$group->addOption($check);
$check = new ilCheckboxOption();
$check->setTitle($this->lng->txt('ps_export_confirm'));
$check->setValue('export_confirm_course');
$group->addOption($check);
$check = new ilCheckboxOption();
$check->setTitle($this->lng->txt('ps_export_confirm_group'));
$check->setValue('export_confirm_group');
$group->addOption($check);
$check = new ilCheckboxOption();
$check->setTitle($this->lng->txt('ps_show_grp_access'));
$check->setValue('grp_access_times');
$group->addOption($check);
$check = new ilCheckboxOption();
$check->setTitle($this->lng->txt('ps_show_crs_access'));
$check->setValue('crs_access_times');
$group->addOption($check);
$form->addItem($group);
$check = new ilCheckboxInputGui($this->lng->txt('enable_fora_statistics'), 'fora_statistics');
$check->setInfo($this->lng->txt('enable_fora_statistics_desc'));
$check->setChecked($privacy->enabledForaStatistics());
$form->addItem($check);
$check = new ilCheckboxInputGui($this->lng->txt('enable_anonymous_fora'), 'anonymous_fora');
$check->setInfo($this->lng->txt('enable_anonymous_fora_desc'));
$check->setChecked($privacy->enabledAnonymousFora());
$form->addItem($check);
$check = new ilCheckboxInputGui($this->lng->txt('enable_sahs_protocol_data'), 'enable_sahs_pd');
$check->setInfo($this->lng->txt('enable_sahs_protocol_data_desc'));
$check->setChecked($privacy->enabledSahsProtocolData());
$form->addItem($check);
$check = new ilCheckboxInputGui($this->lng->txt('rbac_log'), 'rbac_log');
$check->setInfo($this->lng->txt('rbac_log_info'));
$check->setChecked($privacy->enabledRbacLog());
$form->addItem($check);
$age = new ilNumberInputGUI($this->lng->txt('rbac_log_age'),'rbac_log_age');
$age->setInfo($this->lng->txt('rbac_log_age_info'));
$age->setValue($privacy->getRbacLogAge());
$age->setMinValue(1);
$age->setMaxValue(24);
$age->setSize(2);
$age->setMaxLength(2);
$check->addSubItem($age);
$form->addCommandButton('save_privacy',$this->lng->txt('save'));
$this->tpl->setContent($form->getHTML());
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjPrivacySecurityGUI::showSecurity ( )

Show Privacy settings.

public

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

References $ilSetting, ilSecuritySettings\_getInstance(), ilSecuritySettings\ACCOUNT_SECURITY_MODE_CUSTOMIZED, ilSecuritySettings\ACCOUNT_SECURITY_MODE_DEFAULT, ilCheckboxInputGUI\setChecked(), ilRadioOption\setInfo(), ilFormPropertyGUI\setInfo(), ilTextInputGUI\setMaxLength(), ilCheckboxInputGUI\setOptionTitle(), ilTextInputGUI\setValue(), and ilRadioGroupInputGUI\setValue().

Referenced by save_security().

{
global $ilSetting;
include_once("./Services/Form/classes/class.ilPropertyFormGUI.php");
$this->tabs_gui->setTabActive('show_security');
$form = new ilPropertyFormGUI();
$form->setFormAction($this->ctrl->getFormAction($this));
$form->setTitle($this->lng->txt('ps_security_protection'));
// Form checkbox
$check = new ilCheckboxInputGUI($this->lng->txt('ps_auto_https'),'auto_https_detect_enabled');
$check->setOptionTitle($this->lng->txt('ps_auto_https_description'));
$check->setChecked($security->isAutomaticHTTPSEnabled() ? 1 : 0);
$check->setValue(1);
$text = new ilTextInputGUI($this->lng->txt('ps_auto_https_header_name'),'auto_https_detect_header_name');
$text->setValue($security->getAutomaticHTTPSHeaderName());
$text->setSize(24);
$text->setMaxLength(64);
$check->addSubItem($text);
$text = new ilTextInputGUI($this->lng->txt('ps_auto_https_header_value'),'auto_https_detect_header_value');
$text->setValue($security->getAutomaticHTTPSHeaderValue());
$text->setSize(24);
$text->setMaxLength(64);
$check->addSubItem($text);
$form->addItem($check);
$check2 = new ilCheckboxInputGUI($this->lng->txt('activate_https'),'https_enabled');
$check2->setChecked($security->isHTTPSEnabled() ? 1 : 0);
$check2->setValue(1);
$form->addItem($check2);
$radio_group = new ilRadioGroupInputGUI($this->lng->txt('ps_account_security_mode'), 'account_security_mode' );
$radio_group->setValue($security->getAccountSecurityMode());
$radio_opt = new ilRadioOption($this->lng->txt('ps_account_security_mode_default'),ilSecuritySettings::ACCOUNT_SECURITY_MODE_DEFAULT);
$radio_group->addOption($radio_opt);
$radio_opt = new ilRadioOption($this->lng->txt('ps_account_security_mode_customized'),ilSecuritySettings::ACCOUNT_SECURITY_MODE_CUSTOMIZED);
$check = new ilCheckboxInputGUI($this->lng->txt('ps_password_chars_and_numbers_enabled'),'password_chars_and_numbers_enabled');
$check->setChecked( $security->isPasswordCharsAndNumbersEnabled() ? 1 : 0 );
//$check->setOptionTitle($this->lng->txt('ps_password_chars_and_numbers_enabled'));
$check->setInfo($this->lng->txt('ps_password_chars_and_numbers_enabled_info'));
$radio_opt->addSubItem($check);
$check = new ilCheckboxInputGUI($this->lng->txt('ps_password_special_chars_enabled'),'password_special_chars_enabled');
$check->setChecked( $security->isPasswordSpecialCharsEnabled() ? 1 : 0 );
//$check->setOptionTitle($this->lng->txt('ps_password_special_chars_enabled'));
$check->setInfo($this->lng->txt('ps_password_special_chars_enabled_info'));
$radio_opt->addSubItem($check);
$text = new ilTextInputGUI($this->lng->txt('ps_password_min_length'),'password_min_length');
$text->setInfo($this->lng->txt('ps_password_min_length_info'));
$text->setValue( $security->getPasswordMinLength() );
$text->setSize(1);
$text->setMaxLength(2);
$radio_opt->addSubItem($text);
$text = new ilTextInputGUI($this->lng->txt('ps_password_max_length'),'password_max_length');
$text->setInfo($this->lng->txt('ps_password_max_length_info'));
$text->setValue( $security->getPasswordMaxLength() );
$text->setSize(2);
$text->setMaxLength(3);
$radio_opt->addSubItem($text);
$text = new ilTextInputGUI($this->lng->txt('ps_password_max_age'),'password_max_age');
$text->setInfo($this->lng->txt('ps_password_max_age_info'));
$text->setValue( $security->getPasswordMaxAge() );
$text->setSize(2);
$text->setMaxLength(3);
$radio_opt->addSubItem($text);
$text = new ilTextInputGUI($this->lng->txt('ps_login_max_attempts'),'login_max_attempts');
$text->setInfo($this->lng->txt('ps_login_max_attempts_info'));
$text->setValue( $security->getLoginMaxAttempts() );
$text->setSize(1);
$text->setMaxLength(2);
$radio_opt->addSubItem($text);
$radio_group->addOption($radio_opt);
$form->addItem($radio_group);
$check = new ilCheckboxInputGUI($this->lng->txt('ps_password_change_on_first_login_enabled'),'password_change_on_first_login_enabled');
$check->setInfo($this->lng->txt('ps_password_change_on_first_login_enabled_info'));
$check->setChecked( $security->isPasswordChangeOnFirstLoginEnabled() ? 1 : 0 );
$form->addItem($check);
// file suffix replacement
$ti = new ilTextInputGUI($this->lng->txt("file_suffix_repl"), "suffix_repl_additional");
$ti->setMaxLength(200);
$ti->setSize(40);
$ti->setInfo($this->lng->txt("file_suffix_repl_info")." ".SUFFIX_REPL_DEFAULT);
$ti->setValue($ilSetting->get("suffix_repl_additional"));
$form->addItem($ti);
// prevent login from multiple pcs at the same time
$objCb = new ilCheckboxInputGUI($this->lng->txt('ps_prevent_simultaneous_logins'), 'ps_prevent_simultaneous_logins');
$objCb->setChecked((int)$security->isPreventionOfSimultaneousLoginsEnabled());
$objCb->setValue(1);
$objCb->setOptionTitle($this->lng->txt('ps_prevent_simultaneous_logins_info'));
$form->addItem($objCb);
$form->addCommandButton('save_security',$this->lng->txt('save'));
$this->tpl->setContent($form->getHTML());
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Field Documentation

ilObjPrivacySecurityGUI::$ERROR_MESSAGE
staticprivate

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

Referenced by __construct(), and getErrorMessage().


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