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