本文整理匯總了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");
}