private function initForm() { include_once 'Services/Form/classes/class.ilPropertyFormGUI.php'; $this->form_gui = new ilPropertyFormGUI(); $this->form_gui->setFormAction($this->ctrl->getFormAction($this, 'save')); $this->form_gui->setTitle($this->lng->txt('ldap_configure')); $active = new ilCheckboxInputGUI($this->lng->txt('auth_ldap_enable'), 'active'); $active->setValue(1); $this->form_gui->addItem($active); $ds = new ilCheckboxInputGUI($this->lng->txt('ldap_as_ds'), 'ds'); $ds->setValue(1); $ds->setInfo($this->lng->txt('ldap_as_ds_info')); $this->form_gui->addItem($ds); $servername = new ilTextInputGUI($this->lng->txt('ldap_server_name'), 'server_name'); $servername->setRequired(true); $servername->setInfo($this->lng->txt('ldap_server_name_info')); $servername->setSize(32); $servername->setMaxLength(32); $this->form_gui->addItem($servername); $serverurl = new ilTextInputGUI($this->lng->txt('ldap_server'), 'server_url'); $serverurl->setRequired(true); $serverurl->setInfo($this->lng->txt('ldap_server_url_info')); $serverurl->setSize(64); $serverurl->setMaxLength(255); $this->form_gui->addItem($serverurl); $version = new ilSelectInputGUI($this->lng->txt('ldap_version'), 'version'); $version->setOptions(array(2 => 2, 3 => 3)); $version->setInfo($this->lng->txt('ldap_server_version_info')); $this->form_gui->addItem($version); $basedsn = new ilTextInputGUI($this->lng->txt('basedn'), 'base_dn'); $basedsn->setRequired(true); $basedsn->setSize(64); $basedsn->setMaxLength(255); $this->form_gui->addItem($basedsn); $referrals = new ilCheckboxInputGUI($this->lng->txt('ldap_referrals'), 'referrals'); $referrals->setValue(1); $referrals->setInfo($this->lng->txt('ldap_referrals_info')); $this->form_gui->addItem($referrals); $section_security = new ilFormSectionHeaderGUI(); $section_security->setTitle($this->lng->txt('ldap_server_security_settings')); $this->form_gui->addItem($section_security); $tls = new ilCheckboxInputGUI($this->lng->txt('ldap_tls'), 'tls'); $tls->setValue(1); $this->form_gui->addItem($tls); $binding = new ilRadioGroupInputGUI($this->lng->txt('ldap_server_binding'), 'binding_type'); $anonymous = new ilRadioOption($this->lng->txt('ldap_bind_anonymous'), IL_LDAP_BIND_ANONYMOUS); $binding->addOption($anonymous); $user = new ilRadioOption($this->lng->txt('ldap_bind_user'), IL_LDAP_BIND_USER); $dn = new ilTextInputGUI($this->lng->txt('ldap_server_bind_dn'), 'bind_dn'); $dn->setSize(64); $dn->setMaxLength(255); $user->addSubItem($dn); $pass = new ilPasswordInputGUI($this->lng->txt('ldap_server_bind_pass'), 'bind_pass'); $pass->setSkipSyntaxCheck(true); $pass->setSize(12); $pass->setMaxLength(36); $user->addSubItem($pass); $binding->addOption($user); $this->form_gui->addItem($binding); $section_auth = new ilFormSectionHeaderGUI(); $section_auth->setTitle($this->lng->txt('ldap_authentication_settings')); $this->form_gui->addItem($section_auth); $search_base = new ilTextInputGUI($this->lng->txt('ldap_user_dn'), 'search_base'); $search_base->setInfo($this->lng->txt('ldap_search_base_info')); $search_base->setSize(64); $search_base->setMaxLength(255); $this->form_gui->addItem($search_base); $user_scope = new ilSelectInputGUI($this->lng->txt('ldap_user_scope'), 'user_scope'); $user_scope->setOptions(array(IL_LDAP_SCOPE_ONE => $this->lng->txt('ldap_scope_one'), IL_LDAP_SCOPE_SUB => $this->lng->txt('ldap_scope_sub'))); $user_scope->setInfo($this->lng->txt('ldap_user_scope_info')); $this->form_gui->addItem($user_scope); $user_attribute = new ilTextInputGUI($this->lng->txt('ldap_user_attribute'), 'user_attribute'); $user_attribute->setSize(16); $user_attribute->setMaxLength(64); $user_attribute->setRequired(true); $this->form_gui->addItem($user_attribute); $filter = new ilTextInputGUI($this->lng->txt('ldap_search_filter'), 'filter'); $filter->setInfo($this->lng->txt('ldap_filter_info')); $filter->setSize(64); $filter->setMaxLength(512); $this->form_gui->addItem($filter); $section_restrictions = new ilFormSectionHeaderGUI(); $section_restrictions->setTitle($this->lng->txt('ldap_group_restrictions')); $this->form_gui->addItem($section_restrictions); $group_dn = new ilTextInputGUI($this->lng->txt('ldap_group_search_base'), 'group_dn'); $group_dn->setInfo($this->lng->txt('ldap_group_dn_info')); $group_dn->setSize(64); $group_dn->setMaxLength(255); $this->form_gui->addItem($group_dn); $group_scope = new ilSelectInputGUI($this->lng->txt('ldap_group_scope'), 'group_scope'); $group_scope->setOptions(array(IL_LDAP_SCOPE_ONE => $this->lng->txt('ldap_scope_one'), IL_LDAP_SCOPE_SUB => $this->lng->txt('ldap_scope_sub'))); $group_scope->setInfo($this->lng->txt('ldap_group_scope_info')); $this->form_gui->addItem($group_scope); $group_filter = new ilTextInputGUI($this->lng->txt('ldap_group_filter'), 'group_filter'); $group_filter->setInfo($this->lng->txt('ldap_group_filter_info')); $group_filter->setSize(64); $group_filter->setMaxLength(255); $this->form_gui->addItem($group_filter); $group_member = new ilTextInputGUI($this->lng->txt('ldap_group_member'), 'group_member'); $group_member->setInfo($this->lng->txt('ldap_group_member_info')); $group_member->setSize(32); $group_member->setMaxLength(255); $this->form_gui->addItem($group_member); $group_member_isdn = new ilCheckboxInputGUI($this->lng->txt('ldap_memberisdn'), 'memberisdn'); #$group_member_isdn->setInfo($this->lng->txt('ldap_group_member_info')); $this->form_gui->addItem($group_member_isdn); #$group_member->addSubItem($group_member_isdn); $group = new ilTextInputGUI($this->lng->txt('ldap_group_name'), 'group'); $group->setInfo($this->lng->txt('ldap_group_name_info')); $group->setSize(32); $group->setMaxLength(255); $this->form_gui->addItem($group); $group_atrr = new ilTextInputGUI($this->lng->txt('ldap_group_attribute'), 'group_attribute'); $group_atrr->setInfo($this->lng->txt('ldap_group_attribute_info')); $group_atrr->setSize(16); $group_atrr->setMaxLength(64); $this->form_gui->addItem($group_atrr); $group_optional = new ilCheckboxInputGUI($this->lng->txt('ldap_group_membership'), 'group_optional'); $group_optional->setOptionTitle($this->lng->txt('ldap_group_member_optional')); $group_optional->setInfo($this->lng->txt('ldap_group_optional_info')); $group_optional->setValue(1); $group_user_filter = new ilTextInputGUI($this->lng->txt('ldap_group_user_filter'), 'group_user_filter'); $group_user_filter->setSize(64); $group_user_filter->setMaxLength(255); $group_optional->addSubItem($group_user_filter); $this->form_gui->addItem($group_optional); $section_sync = new ilFormSectionHeaderGUI(); $section_sync->setTitle($this->lng->txt('ldap_user_sync')); $this->form_gui->addItem($section_sync); $ci_gui = new ilCustomInputGUI($this->lng->txt('ldap_moment_sync')); $sync_on_login = new ilCheckboxInputGUI($this->lng->txt('ldap_sync_login'), 'sync_on_login'); $sync_on_login->setValue(1); $ci_gui->addSubItem($sync_on_login); $sync_per_cron = new ilCheckboxInputGUI($this->lng->txt('ldap_sync_cron'), 'sync_per_cron'); $sync_per_cron->setValue(1); $ci_gui->addSubItem($sync_per_cron); $ci_gui->setInfo($this->lng->txt('ldap_user_sync_info')); $this->form_gui->addItem($ci_gui); $global_role = new ilSelectInputGUI($this->lng->txt('ldap_global_role_assignment'), 'global_role'); $global_role->setOptions($this->prepareRoleSelect(false)); $global_role->setInfo($this->lng->txt('ldap_global_role_info')); $this->form_gui->addItem($global_role); $migr = new ilCheckboxInputGUI($this->lng->txt('auth_ldap_migration'), 'migration'); $migr->setInfo($this->lng->txt('auth_ldap_migration_info')); $migr->setValue(1); $this->form_gui->addItem($migr); include_once "Services/Administration/classes/class.ilAdministrationSettingsFormHandler.php"; ilAdministrationSettingsFormHandler::addFieldsToForm(ilAdministrationSettingsFormHandler::FORM_LDAP, $this->form_gui, ilAdministrationSettingsFormHandler::getSettingsGUIInstance("auth")); $this->form_gui->addCommandButton('save', $this->lng->txt('save')); }
protected function initPasswordForm($a_node_id) { global $ilCtrl, $lng; $this->ctrl->setParameter($this, "item_ref_id", $a_node_id); $object_data = $this->getAccessHandler()->getObjectDataFromNode($a_node_id); include_once "Services/Form/classes/class.ilPropertyFormGUI.php"; $form = new ilPropertyFormGUI(); $form->setFormAction($ilCtrl->getFormAction($this, "checkPassword")); $form->setTitle($lng->txt("wsp_password_for") . ": " . $object_data["title"]); $password = new ilPasswordInputGUI($lng->txt("password"), "password"); $password->setRetype(false); $password->setRequired(true); $password->setSkipSyntaxCheck(true); $form->addItem($password); $form->addCommandButton("checkPassword", $lng->txt("submit")); $form->addCommandButton("share", $lng->txt("cancel")); return $form; }
/** * Init master login form. */ public function initMasterLoginForm() { global $lng, $ilCtrl; include_once "Services/Form/classes/class.ilPropertyFormGUI.php"; $this->form = new ilPropertyFormGUI(); // password $pi = new ilPasswordInputGUI($lng->txt("password"), "mpassword"); $pi->setSize(20); $pi->setRetype(false); $pi->setSkipSyntaxCheck(true); $this->form->addItem($pi); $this->form->addCommandButton("performMLogin", $lng->txt("login")); $this->form->setTitle($lng->txt("admin_login")); $this->form->setFormAction("setup.php?cmd=gateway"); }
/** * init settings form * * @access protected */ protected function initSettingsForm($a_mode = 'update') { if (is_object($this->form)) { return true; } include_once 'Services/Form/classes/class.ilPropertyFormGUI.php'; $this->form = new ilPropertyFormGUI(); $this->form->setFormAction($this->ctrl->getFormAction($this, 'settings')); $this->form->setTitle($this->lng->txt('ecs_connection_settings')); $ena = new ilCheckboxInputGUI($this->lng->txt('ecs_active'), 'active'); $ena->setChecked($this->settings->isEnabled()); $ena->setValue(1); $this->form->addItem($ena); $server_title = new ilTextInputGUI($this->lng->txt('ecs_server_title'), 'title'); $server_title->setValue($this->settings->getTitle()); $server_title->setSize(80); $server_title->setMaxLength(128); $server_title->setRequired(true); $this->form->addItem($server_title); $ser = new ilTextInputGUI($this->lng->txt('ecs_server_url'), 'server'); $ser->setValue((string) $this->settings->getServer()); $ser->setRequired(true); $this->form->addItem($ser); $pro = new ilSelectInputGUI($this->lng->txt('ecs_protocol'), 'protocol'); // fixed to https #$pro->setOptions(array(ilECSSetting::PROTOCOL_HTTP => $this->lng->txt('http'), # ilECSSetting::PROTOCOL_HTTPS => $this->lng->txt('https'))); $pro->setOptions(array(ilECSSetting::PROTOCOL_HTTPS => 'HTTPS')); $pro->setValue($this->settings->getProtocol()); $pro->setRequired(true); $this->form->addItem($pro); $por = new ilTextInputGUI($this->lng->txt('ecs_port'), 'port'); $por->setSize(5); $por->setMaxLength(5); $por->setValue((string) $this->settings->getPort()); $por->setRequired(true); $this->form->addItem($por); $tcer = new ilRadioGroupInputGUI($this->lng->txt('ecs_auth_type'), 'auth_type'); $tcer->setValue($this->settings->getAuthType()); $this->form->addItem($tcer); // Certificate based authentication $cert_based = new ilRadioOption($this->lng->txt('ecs_auth_type_cert'), ilECSSetting::AUTH_CERTIFICATE); $tcer->addOption($cert_based); $cli = new ilTextInputGUI($this->lng->txt('ecs_client_cert'), 'client_cert'); $cli->setSize(60); $cli->setValue((string) $this->settings->getClientCertPath()); $cli->setRequired(true); $cert_based->addSubItem($cli); $key = new ilTextInputGUI($this->lng->txt('ecs_cert_key'), 'key_path'); $key->setSize(60); $key->setValue((string) $this->settings->getKeyPath()); $key->setRequired(true); $cert_based->addSubItem($key); $cerp = new ilTextInputGUI($this->lng->txt('ecs_key_password'), 'key_password'); $cerp->setSize(12); $cerp->setValue((string) $this->settings->getKeyPassword()); $cerp->setInputType('password'); $cerp->setRequired(true); $cert_based->addSubItem($cerp); $cer = new ilTextInputGUI($this->lng->txt('ecs_ca_cert'), 'ca_cert'); $cer->setSize(60); $cer->setValue((string) $this->settings->getCACertPath()); $cer->setRequired(true); $cert_based->addSubItem($cer); // Apache auth $apa_based = new ilRadioOption($this->lng->txt('ecs_auth_type_apache'), ilECSSetting::AUTH_APACHE); $tcer->addOption($apa_based); $user = new ilTextInputGUI($this->lng->txt('ecs_apache_user'), 'auth_user'); $user->setSize(32); $user->setValue((string) $this->settings->getAuthUser()); $user->setRequired(true); $apa_based->addSubItem($user); $pass = new ilPasswordInputGUI($this->lng->txt('ecs_apache_pass'), 'auth_pass'); $pass->setRetype(false); $pass->setSize(32); $pass->setMaxLength(128); $pass->setValue((string) $this->settings->getAuthPass()); $pass->setRequired(true); $pass->setSkipSyntaxCheck(TRUE); $apa_based->addSubItem($pass); $ser = new ilNonEditableValueGUI($this->lng->txt('cert_serial')); $ser->setValue($this->settings->getCertSerialNumber() ? $this->settings->getCertSerialNumber() : $this->lng->txt('ecs_no_value')); $cert_based->addSubItem($ser); $loc = new ilFormSectionHeaderGUI(); $loc->setTitle($this->lng->txt('ecs_local_settings')); $this->form->addItem($loc); $pol = new ilDurationInputGUI($this->lng->txt('ecs_polling'), 'polling'); $pol->setShowDays(false); $pol->setShowHours(false); $pol->setShowMinutes(true); $pol->setShowSeconds(true); $pol->setSeconds($this->settings->getPollingTimeSeconds()); $pol->setMinutes($this->settings->getPollingTimeMinutes()); $pol->setRequired(true); $pol->setInfo($this->lng->txt('ecs_polling_info')); $this->form->addItem($pol); $imp = new ilCustomInputGUI($this->lng->txt('ecs_import_id')); $imp->setRequired(true); $tpl = new ilTemplate('tpl.ecs_import_id_form.html', true, true, 'Services/WebServices/ECS'); $tpl->setVariable('SIZE', 5); $tpl->setVariable('MAXLENGTH', 11); $tpl->setVariable('POST_VAR', 'import_id'); $tpl->setVariable('PROPERTY_VALUE', $this->settings->getImportId()); if ($this->settings->getImportId()) { $tpl->setVariable('COMPLETE_PATH', $this->buildPath($this->settings->getImportId())); } $imp->setHTML($tpl->get()); $imp->setInfo($this->lng->txt('ecs_import_id_info')); $this->form->addItem($imp); $loc = new ilFormSectionHeaderGUI(); $loc->setTitle($this->lng->txt('ecs_remote_user_settings')); $this->form->addItem($loc); $role = new ilSelectInputGUI($this->lng->txt('ecs_role'), 'global_role'); $role->setOptions($this->prepareRoleSelect()); $role->setValue($this->settings->getGlobalRole()); $role->setInfo($this->lng->txt('ecs_global_role_info')); $role->setRequired(true); $this->form->addItem($role); $duration = new ilDurationInputGUI($this->lng->txt('ecs_account_duration'), 'duration'); $duration->setInfo($this->lng->txt('ecs_account_duration_info')); $duration->setMonths($this->settings->getDuration()); $duration->setShowSeconds(false); $duration->setShowMinutes(false); $duration->setShowHours(false); $duration->setShowDays(false); $duration->setShowMonths(true); $duration->setRequired(true); $this->form->addItem($duration); // Email recipients $loc = new ilFormSectionHeaderGUI(); $loc->setTitle($this->lng->txt('ecs_notifications')); $this->form->addItem($loc); $rcp_user = new ilTextInputGUI($this->lng->txt('ecs_user_rcp'), 'user_recipients'); $rcp_user->setValue((string) $this->settings->getUserRecipientsAsString()); $rcp_user->setInfo($this->lng->txt('ecs_user_rcp_info')); $this->form->addItem($rcp_user); $rcp_econ = new ilTextInputGUI($this->lng->txt('ecs_econ_rcp'), 'econtent_recipients'); $rcp_econ->setValue((string) $this->settings->getEContentRecipientsAsString()); $rcp_econ->setInfo($this->lng->txt('ecs_econ_rcp_info')); $this->form->addItem($rcp_econ); $rcp_app = new ilTextInputGUI($this->lng->txt('ecs_approval_rcp'), 'approval_recipients'); $rcp_app->setValue((string) $this->settings->getApprovalRecipientsAsString()); $rcp_app->setInfo($this->lng->txt('ecs_approval_rcp_info')); $this->form->addItem($rcp_app); if ($a_mode == 'update') { $this->form->addCommandButton('update', $this->lng->txt('save')); } else { $this->form->addCommandButton('save', $this->lng->txt('save')); } $this->form->addCommandButton('overview', $this->lng->txt('cancel')); }
/** * Init password form. * * @param int $a_mode Edit Mode */ public function initPasswordForm() { global $lng, $ilUser, $ilSetting; include_once "Services/Form/classes/class.ilPropertyFormGUI.php"; $this->form = new ilPropertyFormGUI(); // Check whether password change is allowed if ($this->allowPasswordChange()) { // The current password needs to be checked for verification // unless the user uses Shibboleth authentication with additional // local authentication for WebDAV. //if ( // ($ilUser->getAuthMode(true) != AUTH_SHIBBOLETH || !$ilSetting->get("shib_auth_allow_local")) //) if ($ilUser->getAuthMode(true) == AUTH_LOCAL) { // current password $cpass = new ilPasswordInputGUI($lng->txt("current_password"), "current_password"); $cpass->setRetype(false); $cpass->setSkipSyntaxCheck(true); // only if a password exists. if ($ilUser->getPasswd()) { $cpass->setRequired(true); } $this->form->addItem($cpass); } // new password $ipass = new ilPasswordInputGUI($lng->txt("desired_password"), "new_password"); $ipass->setRequired(true); $ipass->setInfo(ilUtil::getPasswordRequirementsInfo()); if ($ilSetting->get("passwd_auto_generate") == 1) { $ipass->setPreSelection(true); $this->form->addItem($ipass); $this->form->addCommandButton("savePassword", $lng->txt("save")); $this->form->addCommandButton("showPassword", $lng->txt("new_list_password")); } else { $this->form->addItem($ipass); $this->form->addCommandButton("savePassword", $lng->txt("save")); } switch ($ilUser->getAuthMode(true)) { case AUTH_LOCAL: $this->form->setTitle($lng->txt("chg_password")); break; case AUTH_SHIBBOLETH: case AUTH_CAS: require_once 'Services/WebDAV/classes/class.ilDAVServer.php'; if (ilDAVServer::_isActive()) { $this->form->setTitle($lng->txt("chg_ilias_and_webfolder_password")); } else { $this->form->setTitle($lng->txt("chg_ilias_password")); } break; default: $this->form->setTitle($lng->txt("chg_ilias_password")); break; } $this->form->setFormAction($this->ctrl->getFormAction($this)); } }
/** * Init configuration form. * * @return object form object */ public function initConfigurationForm() { global $lng, $ilCtrl; $pl = $this->getPluginObject(); $this->getPluginObject()->includeClass('class.ilViteroSettings.php'); $settings = ilViteroSettings::getInstance(); include_once "Services/Form/classes/class.ilPropertyFormGUI.php"; $form = new ilPropertyFormGUI(); $form->setTitle($this->getPluginObject()->txt('vitero_plugin_configuration')); $form->setFormAction($ilCtrl->getFormAction($this)); $form->addCommandButton('save', $lng->txt('save')); $form->setShowTopButtons(false); // Server url $uri = new ilTextInputGUI($this->getPluginObject()->txt('server_uri'), 'server_uri'); $uri->setRequired(true); $uri->setSize(80); $uri->setMaxLength(512); $uri->setValue($settings->getServerUrl()); $form->addItem($uri); // Admin user $admin = new ilTextInputGUI($this->getPluginObject()->txt('admin_user'), 'admin_user'); $admin->setRequired(true); $admin->setSize(16); $admin->setMaxLength(128); $admin->setValue($settings->getAdminUser()); $form->addItem($admin); // Admin pass $pass = new ilPasswordInputGUI($this->getPluginObject()->txt('admin_pass'), 'admin_pass'); $pass->setSkipSyntaxCheck(true); //$pass->setRequired(true); $pass->setRetype(true); $pass->setSize(12); $pass->setMaxLength(32); //$pass->setValue($settings->getAdminPass()); $form->addItem($pass); // Customer id $cid = new ilNumberInputGUI($this->getPluginObject()->txt('customer_id'), 'customer'); $cid->setSize(3); $cid->setMaxLength(9); $cid->setRequired(true); $cid->setMinValue(1); $cid->setValue($settings->getCustomer()); $form->addItem($cid); // Webstart $ws = new ilTextInputGUI($this->getPluginObject()->txt('webstart_url'), 'webstart'); $ws->setRequired(true); $ws->setSize(80); $ws->setMaxLength(512); $ws->setValue($settings->getWebstartUrl()); $form->addItem($ws); // Client Section $client = new ilFormSectionHeaderGUI(); $client->setTitle($this->getPluginObject()->txt('client_settings')); $form->addItem($client); // cafe $cafe = new ilCheckboxInputGUI($this->getPluginObject()->txt('cafe_setting'), 'cafe'); $cafe->setInfo($this->getPluginObject()->txt('cafe_setting_info')); $cafe->setValue(1); $cafe->setChecked($settings->isCafeEnabled()); $form->addItem($cafe); // content $content = new ilCheckboxInputGUI($this->getPluginObject()->txt('content_admin'), 'content'); $content->setInfo($this->getPluginObject()->txt('content_admin_info')); $content->setValue(1); $content->setChecked($settings->isContentAdministrationEnabled()); $form->addItem($content); // Standard room $standard = new ilCheckboxInputGUI($this->getPluginObject()->txt('standard_room'), 'std_room'); $standard->setInfo($this->getPluginObject()->txt('standard_room_info')); $standard->setValue(1); $standard->setChecked($settings->isStandardRoomEnabled()); $form->addItem($standard); // ldap $ldap = new ilCheckboxInputGUI($this->getPluginObject()->txt('ldap_setting'), 'ldap'); $ldap->setInfo($this->getPluginObject()->txt('ldap_setting_info')); $ldap->setValue(1); $ldap->setChecked($settings->isLdapUsed()); #$form->addItem($ldap); // userprefix $prefix = new ilTextInputGUI($this->getPluginObject()->txt('uprefix'), 'uprefix'); $prefix->setInfo($this->getPluginObject()->txt('uprefix_info')); $prefix->setSize(6); $prefix->setMaxLength(16); $prefix->setValue($settings->getUserPrefix()); $form->addItem($prefix); // avatar $ava = new ilCheckboxInputGUI($this->getPluginObject()->txt('avatar'), 'avatar'); $ava->setValue(1); $ava->setChecked($settings->isAvatarEnabled()); $ava->setInfo($this->getPluginObject()->txt('avatar_info')); $form->addItem($ava); /* if(!class_exists('WSMessage')) { $ava->setDisabled(true); $ava->setAlert($this->getPluginObject()->txt('avatar_warning')); } $cert = new ilTextInputGUI($this->getPluginObject()->txt('mtom_cert'),'mtom_cert'); $cert->setValue($settings->getMTOMCert()); $cert->setSize(100); $cert->setMaxLength(512); $cert->setInfo($this->getPluginObject()->txt('mtom_cert_info')); if(!class_exists('WSMessage')) { $cert->setDisabled(true); } $ava->addSubItem($cert); */ // grace period before $gpb = new ilSelectInputGUI($this->getPluginObject()->txt('std_grace_period_before'), 'grace_period_before'); $gpb->setInfo($this->getPluginObject()->txt('std_grace_period_before_info')); $gpb->setOptions(array(0 => '0 min', 15 => '15 min', 30 => '30 min', 45 => '45 min', 60 => '1 h')); $gpb->setValue($settings->getStandardGracePeriodBefore()); $form->addItem($gpb); // grace period after $gpa = new ilSelectInputGUI($this->getPluginObject()->txt('std_grace_period_after'), 'grace_period_after'); $gpa->setInfo($this->getPluginObject()->txt('std_grace_period_after_info')); $gpa->setOptions(array(0 => '0 min', 15 => '15 min', 30 => '30 min', 45 => '45 min', 60 => '1 h')); $gpa->setValue($settings->getStandardGracePeriodAfter()); $form->addItem($gpa); return $form; }
/** * @return ilPropertyFormGUI */ public function getClientSettingsForm() { /** * @var $lng ilLanguage */ global $lng; $form = new ilPropertyFormGUI(); $cb = new ilCheckboxInputGUI($lng->txt('chat_enabled'), 'chat_enabled'); $form->addItem($cb); $cb = new ilCheckboxInputGUI($lng->txt('enable_osd'), 'enable_osd'); $cb->setInfo($lng->txt('hint_osd')); $form->addItem($cb); $txt = new ilNumberInputGUI($lng->txt('osd_intervall'), 'osd_intervall'); $txt->setMinValue(1); $txt->setRequired(true); $txt->setInfo($lng->txt('hint_osd_interval')); $cb->addSubItem($txt); $cb1 = new ilCheckboxInputGUI($lng->txt('play_invitation_sound'), 'play_invitation_sound'); $cb1->setInfo($lng->txt('play_invitation_sound')); $cb->addSubItem($cb1); $cb = new ilCheckboxInputGUI($lng->txt('enable_smilies'), 'enable_smilies'); $cb->setInfo($lng->txt('hint_enable_smilies')); $form->addItem($cb); $name = new ilTextInputGUI($lng->txt('instance_name'), 'name'); $name->setRequired(true); $name->setValidationRegexp('/^[a-z0-9_-]+$/i'); $name->setInfo($lng->txt('hint_unique_name')); $form->addItem($name); $url = new ilTextInputGUI($lng->txt('ilias_url'), 'url'); $url->setRequired(true); $form->addItem($url); $user = new ilTextInputGUI($lng->txt('soap_user'), 'user'); $user->setInfo($lng->txt('soap_user_hint')); $user->setRequired(true); $form->addItem($user); $password = new ilPasswordInputGUI($lng->txt('soap_user_password'), 'password'); $password->setSkipSyntaxCheck(true); $password->setRequired(true); $form->addItem($password); return $form; }