当前位置: 首页>>代码示例>>PHP>>正文


PHP ilUserUtil::setStartingPoint方法代码示例

本文整理汇总了PHP中ilUserUtil::setStartingPoint方法的典型用法代码示例。如果您正苦于以下问题:PHP ilUserUtil::setStartingPoint方法的具体用法?PHP ilUserUtil::setStartingPoint怎么用?PHP ilUserUtil::setStartingPoint使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ilUserUtil的用法示例。


在下文中一共展示了ilUserUtil::setStartingPoint方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: saveBasicSettingsObject

 /**
  * Save basic settings form
  *
  */
 public function saveBasicSettingsObject()
 {
     global $tpl, $lng, $ilCtrl, $ilSetting, $rbacsystem;
     if (!$rbacsystem->checkAccess("write", $this->object->getRefId())) {
         $this->ilias->raiseError($this->lng->txt("permission_denied"), $this->ilias->error_obj->MESSAGE);
     }
     $this->initBasicSettingsForm();
     if ($this->form->checkInput()) {
         $ilSetting->set("short_inst_name", $_POST["short_inst_name"]);
         $ilSetting->set("pub_section", $_POST["pub_section"]);
         $global_profiles = $_POST["pub_section"] ? (int) $_POST['enable_global_profiles'] : 0;
         $ilSetting->set('enable_global_profiles', $global_profiles);
         $ilSetting->set("open_google", $_POST["open_google"]);
         $ilSetting->set("locale", $_POST["locale"]);
         include_once "Services/User/classes/class.ilUserUtil.php";
         ilUserUtil::setStartingPoint($this->form->getInput('usr_start'), $this->form->getInput('usr_start_ref_id'));
         ilUserUtil::togglePersonalStartingPoint($this->form->getInput('usr_start_pers'));
         ilUtil::sendSuccess($lng->txt("msg_obj_modified"), true);
         $ilCtrl->redirect($this, "showBasicSettings");
     }
     $this->setGeneralSettingsSubTabs("basic_settings");
     $this->form->setValuesByPost();
     $tpl->setContent($this->form->getHtml());
 }
开发者ID:bheyser,项目名称:qplskl,代码行数:28,代码来源:class.ilObjSystemFolderGUI.php

示例2: saveBasicSettingsObject

 /**
  * Save basic settings form
  *
  */
 public function saveBasicSettingsObject()
 {
     global $tpl, $lng, $ilCtrl, $ilSetting, $rbacsystem;
     if (!$rbacsystem->checkAccess("write", $this->object->getRefId())) {
         $this->ilias->raiseError($this->lng->txt("permission_denied"), $this->ilias->error_obj->MESSAGE);
     }
     $this->initBasicSettingsForm();
     if ($this->form->checkInput()) {
         $ilSetting->set("short_inst_name", $_POST["short_inst_name"]);
         $ilSetting->set("pub_section", $_POST["pub_section"]);
         $ilSetting->set("open_google", $_POST["open_google"]);
         $ilSetting->set("default_repository_view", $_POST["default_rep_view"]);
         $ilSetting->set("links_dynamic", $_POST["links_dynamic"]);
         $ilSetting->set("enable_trash", $_POST["enable_trash"]);
         $ilSetting->set("password_assistance", $_POST["password_assistance"]);
         $ilSetting->set("passwd_auto_generate", $_POST["passwd_auto_generate"]);
         $ilSetting->set("locale", $_POST["locale"]);
         $ilSetting->set('preview_learner', (int) $_POST['preview_learner']);
         $ilSetting->set('comments_tagging_in_lists', (int) $_POST['comments_tagging_in_lists']);
         $ilSetting->set('activate_captcha_anonym', (int) $_POST['activate_captcha_anonym']);
         //			$ilSetting->set('rep_cache',(int) $_POST['rep_cache']);
         $ilSetting->set('item_cmd_asynch', (int) $_POST['item_cmd_asynch']);
         $ilSetting->set("repository_tree_pres", $_POST["tree_pres"]);
         if ($_POST["tree_pres"] == "") {
             $_POST["rep_tree_limit_grp_crs"] = "";
         }
         if ($_POST["rep_tree_limit_grp_crs"] && !$ilSetting->get("rep_tree_limit_grp_crs")) {
             $_POST["rep_tree_synchronize"] = true;
         } else {
             if (!$_POST["rep_tree_synchronize"] && $ilSetting->get("rep_tree_synchronize")) {
                 $_POST["rep_tree_limit_grp_crs"] = false;
             }
         }
         $ilSetting->set("rep_tree_limit_grp_crs", $_POST["rep_tree_limit_grp_crs"]);
         $ilSetting->set("rep_tree_synchronize", $_POST["rep_tree_synchronize"]);
         // BEGIN SESSION SETTINGS
         $ilSetting->set('session_handling_type', (int) $this->form->getInput('session_handling_type'));
         if ($this->form->getInput('session_handling_type') == ilSession::SESSION_HANDLING_FIXED) {
             $ilSetting->set('session_reminder_enabled', $this->form->getInput('session_reminder_enabled'));
         } else {
             if ($this->form->getInput('session_handling_type') == ilSession::SESSION_HANDLING_LOAD_DEPENDENT) {
                 require_once 'Services/Authentication/classes/class.ilSessionControl.php';
                 if ($ilSetting->get('session_allow_client_maintenance', ilSessionControl::DEFAULT_ALLOW_CLIENT_MAINTENANCE)) {
                     // has to be done BEFORE updating the setting!
                     include_once "Services/Authentication/classes/class.ilSessionStatistics.php";
                     ilSessionStatistics::updateLimitLog((int) $this->form->getInput('session_max_count'));
                     $ilSetting->set('session_max_count', (int) $this->form->getInput('session_max_count'));
                     $ilSetting->set('session_min_idle', (int) $this->form->getInput('session_min_idle'));
                     $ilSetting->set('session_max_idle', (int) $this->form->getInput('session_max_idle'));
                     $ilSetting->set('session_max_idle_after_first_request', (int) $this->form->getInput('session_max_idle_after_first_request'));
                 }
             }
         }
         // END SESSION SETTINGS
         $global_profiles = $_POST["pub_section"] ? (int) $_POST['enable_global_profiles'] : 0;
         $ilSetting->set('enable_global_profiles', $global_profiles);
         $ilSetting->set("rep_shorten_description", $this->form->getInput('rep_shorten_description'));
         $ilSetting->set("rep_shorten_description_length", (int) $this->form->getInput('rep_shorten_description_length'));
         include_once "Services/User/classes/class.ilUserUtil.php";
         ilUserUtil::setStartingPoint($this->form->getInput('usr_start'), $this->form->getInput('usr_start_ref_id'));
         ilUserUtil::togglePersonalStartingPoint($this->form->getInput('usr_start_pers'));
         ilUtil::sendSuccess($lng->txt("msg_obj_modified"), true);
         $ilCtrl->redirect($this, "showBasicSettings");
     }
     $this->setGeneralSettingsSubTabs("basic_settings");
     $this->form->setValuesByPost();
     $tpl->setContent($this->form->getHtml());
 }
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:72,代码来源:class.ilObjSystemFolderGUI.php


注:本文中的ilUserUtil::setStartingPoint方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。