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


PHP ilSetting::setScormDebug方法代码示例

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


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

示例1: saveSettings

 /**
  * Save learning resources settings
  */
 public function saveSettings()
 {
     global $ilCtrl, $ilSetting;
     $lm_set = new ilSetting("lm");
     $lm_set->set("time_scheduled_page_activation", ilUtil::stripSlashes($_POST["time_scheduled_page_activation"]));
     $lm_set->set("page_history", (int) ilUtil::stripSlashes($_POST["page_history"]));
     $lm_set->set("replace_mob_feature", ilUtil::stripSlashes($_POST["replace_mob_feature"]));
     $lm_set->set("html_export_ids", ilUtil::stripSlashes($_POST["html_export_ids"]));
     $lm_set->set("cont_upload_dir", ilUtil::stripSlashes($_POST["cont_upload_dir"]));
     $lm_set->setScormDebug("scormdebug_global_activate", ilUtil::stripSlashes($_POST["scormdebug_global_activate"]));
     $lm_set->set("scorm_login_as_learner_id", ilUtil::stripSlashes($_POST["scorm_login_as_learner_id"]));
     $lm_set->set("scormdebug_disable_cache", ilUtil::stripSlashes($_POST["scormdebug_disable_cache"]));
     $lm_set->set("scorm_without_session", ilUtil::stripSlashes($_POST["scorm_without_session"]));
     $lic_set = new ilSetting("license");
     $lic_set->set("license_counter", ilUtil::stripSlashes($_POST["license_counter"]));
     $lic_set->set("license_warning", ilUtil::stripSlashes($_POST["license_warning"]));
     $privacy = ilPrivacySettings::_getInstance();
     $privacy->enableSahsProtocolData((int) $_POST['enable_sahs_pd']);
     $privacy->save();
     ilUtil::sendSuccess($this->lng->txt("settings_saved"), true);
     $ilCtrl->redirect($this, "view");
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:25,代码来源:class.ilObjLearningResourcesSettingsGUI.php

示例2: saveSettings

 /**
  * Save learning resources settings
  */
 public function saveSettings()
 {
     global $ilCtrl, $ilSetting;
     $lm_set = new ilSetting("lm");
     $lm_set->set("time_scheduled_page_activation", ilUtil::stripSlashes($_POST["time_scheduled_page_activation"]));
     $lm_set->set("page_history", (int) ilUtil::stripSlashes($_POST["page_history"]));
     $lm_set->set("replace_mob_feature", ilUtil::stripSlashes($_POST["replace_mob_feature"]));
     $lm_set->set("html_export_ids", ilUtil::stripSlashes($_POST["html_export_ids"]));
     $lm_set->set("cont_upload_dir", ilUtil::stripSlashes($_POST["cont_upload_dir"]));
     $lm_set->setScormDebug("scormdebug_global_activate", ilUtil::stripSlashes($_POST["scormdebug_global_activate"]));
     $lm_set->set("scormdebug_disable_cache", ilUtil::stripSlashes($_POST["scormdebug_disable_cache"]));
     $lic_set = new ilSetting("license");
     $lic_set->set("license_counter", ilUtil::stripSlashes($_POST["license_counter"]));
     $lic_set->set("license_warning", ilUtil::stripSlashes($_POST["license_warning"]));
     ilUtil::sendSuccess($this->lng->txt("settings_saved"), true);
     $ilCtrl->redirect($this, "view");
 }
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:20,代码来源:class.ilObjLearningResourcesSettingsGUI.php


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