本文整理汇总了PHP中COption::setOptionString方法的典型用法代码示例。如果您正苦于以下问题:PHP COption::setOptionString方法的具体用法?PHP COption::setOptionString怎么用?PHP COption::setOptionString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类COption
的用法示例。
在下文中一共展示了COption::setOptionString方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: DoInstall
function DoInstall()
{
global $APPLICATION, $USER, $step, $arSitesList;
if ($USER->IsAdmin()) {
$arSitesList = array();
$rsSites = CSite::GetList($by = "sort", $order = "desc", array());
while ($arSite = $rsSites->Fetch()) {
$arSitesList[$arSite['ID']] = $arSite['NAME'];
}
$step = IntVal($step);
if ($step < 2) {
$APPLICATION->IncludeAdminFile(GetMessage("CONTENT_INCLUDER_MODULE_INSTALL_TITLE") . $this->MODULE_ID, $this->sModuleInstallFullPath . "step1.php");
} elseif ($step == 2) {
RegisterModule($this->MODULE_ID);
RegisterModuleDependences("main", "OnEndBufferContent", $this->MODULE_ID, '\\Bit\\Includer\\Handlers', "OnEndBufferContentHandler");
RegisterModuleDependences("fileman", "OnIncludeHTMLEditorScript", $this->MODULE_ID, '\\Bit\\Includer\\Handlers', "OnIncludeHTMLEditorScriptHandler");
$this->InstallFiles();
$sSiteId = array_key_exists($_REQUEST['site_id'], $arSitesList) ? $_REQUEST['site_id'] : SITE_ID;
if ($_REQUEST['install_sample_iblock'] === "Y") {
$this->createSampleIblock($sSiteId);
}
if ($_REQUEST['disable_new_editor'] === "Y") {
COption::setOptionString("fileman", "use_editor_3", "");
}
COption::SetOptionString("bit.includer", "include_jquery", $_REQUEST['include_jquery_for_component'] === "Y" ? "Y" : "N");
$APPLICATION->IncludeAdminFile(GetMessage("CONTENT_INCLUDER_MODULE_INSTALL_TITLE"), $this->sModuleInstallFullPath . "step2.php");
}
}
}