當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。