本文整理汇总了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");
}
示例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");
}