当前位置: 首页>>代码示例>>PHP>>正文


PHP CBXFeatures::IsFeatureEditable方法代码示例

本文整理汇总了PHP中CBXFeatures::IsFeatureEditable方法的典型用法代码示例。如果您正苦于以下问题:PHP CBXFeatures::IsFeatureEditable方法的具体用法?PHP CBXFeatures::IsFeatureEditable怎么用?PHP CBXFeatures::IsFeatureEditable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CBXFeatures的用法示例。


在下文中一共展示了CBXFeatures::IsFeatureEditable方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: DoInstall

 function DoInstall()
 {
     global $DB, $DBType, $DOCUMENT_ROOT, $APPLICATION;
     $APPLICATION->ResetException();
     if (!CBXFeatures::IsFeatureEditable("Extranet")) {
         $this->errors = array(GetMessage("MAIN_FEATURE_ERROR_EDITABLE"));
         $APPLICATION->ThrowException(implode("<br>", $this->errors));
         $GLOBALS["errors"] = $this->errors;
     } else {
         if ($this->InstallDB()) {
             $this->InstallEvents();
             $this->InstallFiles();
         }
         $APPLICATION->IncludeAdminFile(GetMessage("EXTRANET_INSTALL_TITLE"), $DOCUMENT_ROOT . "/bitrix/modules/extranet/install/step1.php");
     }
 }
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:16,代码来源:index.php

示例2: DoInstall

 function DoInstall()
 {
     global $DB, $APPLICATION, $step;
     $step = IntVal($step);
     if (!CBXFeatures::IsFeatureEditable('Wiki')) {
         $this->error = GetMessage('MAIN_FEATURE_ERROR_EDITABLE');
         $GLOBALS['errors'] = $this->error;
         $APPLICATION->IncludeAdminFile(GetMessage('WIKI_INSTALL_TITLE'), $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/wiki/install/step3.php');
     } elseif ($step < 2) {
         $APPLICATION->IncludeAdminFile(GetMessage('WIKI_INSTALL_TITLE'), $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/wiki/install/step.php');
     } elseif ($step == 2) {
         $APPLICATION->IncludeAdminFile(GetMessage('WIKI_INSTALL_TITLE'), $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/wiki/install/step2.php');
     } else {
         $this->InstallDB();
         $this->InstallFiles();
         CBXFeatures::SetFeatureEnabled('Wiki', true);
         $APPLICATION->IncludeAdminFile(GetMessage('WIKI_INSTALL_TITLE'), $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/wiki/install/step3.php');
     }
 }
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:19,代码来源:index.php

示例3: DoInstall

	function DoInstall()
	{
		global $DB, $APPLICATION, $step;

		if(!CBXFeatures::IsFeatureEditable("Support"))
		{
			$APPLICATION->ThrowException(GetMessage("SUPPORT_ERROR_EDITABLE"));
			$APPLICATION->IncludeAdminFile(GetMessage("SUP_INSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/support/install/step2.php");
		}
		else
		{
			$step = IntVal($step);
			if($step<2)
			{
				$APPLICATION->IncludeAdminFile(GetMessage("SUP_INSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/support/install/step1.php");
			}
			elseif($step==2)
			{
				$APPLICATION->ResetException();
				if ($this->InstallDB(array('admin' => 'Y')))
				{
					$this->InstallFiles(
						array(
							'install_public' => $_REQUEST['install_public'],
							'public_dir' => $_REQUEST['public_dir'],
							'public_rewrite' => $_REQUEST['public_rewrite'],
						)
					);
				}
				CBXFeatures::SetFeatureEnabled("Support", true);
				$APPLICATION->IncludeAdminFile(GetMessage("SUP_INSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/support/install/step2.php");
			}
		}
	}
开发者ID:ASDAFF,项目名称:bitrix-5,代码行数:34,代码来源:index.php

示例4: DoInstall

 function DoInstall()
 {
     global $APPLICATION, $step;
     $this->errors = null;
     $curPhpVer = PhpVersion();
     $arCurPhpVer = Explode(".", $curPhpVer);
     if (IntVal($arCurPhpVer[0]) < 5) {
         $this->errors = array(GetMessage("DAV_PHP_L439", array("#VERS#" => $curPhpVer)));
     } elseif (!CBXFeatures::IsFeatureEditable("DAV")) {
         $this->errors = array(GetMessage("DAV_ERROR_EDITABLE"));
     } else {
         $this->InstallFiles();
         $this->InstallDB(false);
         $this->InstallEvents();
         $this->InstallPublic();
         CBXFeatures::SetFeatureEnabled("DAV", true);
     }
     $GLOBALS["errors"] = $this->errors;
     $APPLICATION->IncludeAdminFile(GetMessage("DAV_INSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/dav/install/step2.php");
 }
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:20,代码来源:index.php

示例5: DoInstall

 function DoInstall()
 {
     global $APPLICATION, $step;
     $STAT_RIGHT = $APPLICATION->GetGroupRight("statistic");
     $step = IntVal($step);
     if ($STAT_RIGHT < "W") {
         return;
     }
     if (!CBXFeatures::IsFeatureEditable("Analytics")) {
         $this->errors = array(GetMessage("MAIN_FEATURE_ERROR_EDITABLE"));
         $GLOBALS["errors"] = $this->errors;
         $APPLICATION->ThrowException(implode("<br>", $this->errors));
         $APPLICATION->IncludeAdminFile(GetMessage("STAT_INSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/statistic/install/step2.php");
     } elseif ($step < 2) {
         $APPLICATION->IncludeAdminFile(GetMessage("STAT_INSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/statistic/install/step1.php");
     } elseif ($step == 2) {
         $db_install_ok = $this->InstallDB(array("allow_initial" => $_REQUEST["allow_initial"], "START_HITS" => $_REQUEST["START_HITS"], "START_HOSTS" => $_REQUEST["START_HOSTS"], "START_GUESTS" => $_REQUEST["START_GUESTS"], "CREATE_I2C_INDEX" => $_REQUEST["CREATE_I2C_INDEX"], "DATABASE" => $_REQUEST["DATABASE"]));
         if ($db_install_ok) {
             $this->InstallEvents();
             $this->InstallFiles();
             CBXFeatures::SetFeatureEnabled("Analytics", true);
         }
         $GLOBALS["errors"] = $this->errors;
         $APPLICATION->IncludeAdminFile(GetMessage("STAT_INSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/statistic/install/step2.php");
     }
 }
开发者ID:Satariall,项目名称:izurit,代码行数:26,代码来源:index.php

示例6: array

	{
		if (CBXFeatures::IsFeatureEnabled("Tasks"))
			CBXFeatures::SetFeatureEnabled("Tasks", false, false);
	}
	elseif($bTasksEnabledForAnySite && CBXFeatures::IsFeatureEditable("Tasks"))
	{
		if (!CBXFeatures::IsFeatureEnabled("Tasks"))
			CBXFeatures::SetFeatureEnabled("Tasks", true, false);
	}

	if ($bCalendarDisabledForAllSites)
	{
		if (CBXFeatures::IsFeatureEnabled("Calendar"))
			CBXFeatures::SetFeatureEnabled("Calendar", false, false);
	}
	elseif($bCalendarEnabledForAnySite && CBXFeatures::IsFeatureEditable("Calendar"))
	{
		if (!CBXFeatures::IsFeatureEnabled("Calendar"))
			CBXFeatures::SetFeatureEnabled("Calendar", true, false);
	}
}

if (strlen($strWarning) > 0)
	CAdminMessage::ShowMessage($strWarning);

$aTabs = array(
	array("DIV" => "edit1", "TAB" => GetMessage("SONET_TAB_SET"), "ICON" => "socialnetwork_settings", "TITLE" => GetMessage("SONET_TAB_SET_ALT")),
	array("DIV" => "edit2", "TAB" => GetMessage("SONET_TAB_RIGHTS"), "ICON" => "socialnetwork_settings", "TITLE" => GetMessage("SONET_TAB_RIGHTS_ALT")),
);
$tabControl = new CAdminTabControl("tabControl", $aTabs);
开发者ID:ASDAFF,项目名称:bxApiDocs,代码行数:30,代码来源:options.php

示例7: DoInstall

 function DoInstall()
 {
     global $DB, $APPLICATION, $step;
     if (!CBXFeatures::IsFeatureEditable("SMTP")) {
         $APPLICATION->ThrowException(GetMessage("MAIN_FEATURE_ERROR_EDITABLE"));
     } else {
         $this->InstallFiles();
         $this->InstallDB();
         CBXFeatures::SetFeatureEnabled("SMTP", true);
     }
     $APPLICATION->IncludeAdminFile(GetMessage("MAIL_INSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/mail/install/step1.php");
 }
开发者ID:Satariall,项目名称:izurit,代码行数:12,代码来源:index.php

示例8: DoInstall

	function DoInstall()
	{
		global $DB, $APPLICATION, $USER, $step;
		$step = IntVal($step);

		if(!$USER->IsAdmin())
			return;

		if(!CBXFeatures::IsFeatureEditable("Lists"))
		{
			$this->errors = array(GetMessage("MAIN_FEATURE_ERROR_EDITABLE"));
			$APPLICATION->ThrowException(implode("<br>", $this->errors));

			$GLOBALS["errors"] = $this->errors;
			$APPLICATION->IncludeAdminFile(GetMessage("LISTS_INSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/lists/install/step2.php");
		}
		elseif($step < 2)
		{
			$APPLICATION->IncludeAdminFile(GetMessage("LISTS_INSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/lists/install/step1.php");
		}
		elseif($step==2)
		{
			$this->InstallDB(array());
			$this->InstallFiles(array());
			CBXFeatures::SetFeatureEnabled("Lists", true);

			$GLOBALS["errors"] = $this->errors;
			$APPLICATION->IncludeAdminFile(GetMessage("LISTS_INSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/lists/install/step2.php");
		}
	}
开发者ID:ASDAFF,项目名称:1C_Bitrix_info_site,代码行数:30,代码来源:index.php

示例9: DoInstall

 function DoInstall()
 {
     global $APPLICATION;
     if (!CBXFeatures::IsFeatureEditable('timeman')) {
         $this->errors = array(GetMessage("MAIN_FEATURE_ERROR_EDITABLE"));
         $GLOBALS["errors"] = $this->errors;
         $APPLICATION->IncludeAdminFile(GetMessage("TIMEMAN_INSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/" . $this->MODULE_ID . "/install/step1.php");
     } else {
         if (!IsModuleInstalled($this->MODULE_ID)) {
             if ($this->InstallDB()) {
                 CBXFeatures::SetFeatureEnabled('timeman', true);
                 $this->InstallEvents();
                 $this->InstallFiles();
             }
         }
     }
 }
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:17,代码来源:index.php

示例10: DoInstall

 function DoInstall()
 {
     global $DB, $APPLICATION;
     $RIGHT = $APPLICATION->GetGroupRight("controller");
     if ($RIGHT < "W") {
         return;
     }
     if (!CBXFeatures::IsFeatureEditable("Controller")) {
         $APPLICATION->ThrowException(GetMessage("MAIN_FEATURE_ERROR_EDITABLE"));
         $APPLICATION->IncludeAdminFile(GetMessage("CTRL_INST_STEP1"), $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/controller/install/step.php");
     } else {
         $this->InstallDB();
         $this->InstallFiles();
         $this->InstallEvents();
         CBXFeatures::SetFeatureEnabled("Controller", true);
         $APPLICATION->IncludeAdminFile(GetMessage("CTRL_INST_STEP1"), $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/controller/install/step.php");
     }
 }
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:18,代码来源:index.php

示例11: array

	{
		$arSocNetFeaturesSettings["photo"]["subscribe_events"]["photo"]["ENTITIES"][SONET_SUBSCRIBE_ENTITY_GROUP] = array(
				"TITLE" 			=> GetMessage("SOCNET_LOG_PHOTO_GROUP"),
				"TITLE_SETTINGS"	=> GetMessage("SOCNET_LOG_PHOTO_GROUP_SETTINGS"),
				"TITLE_SETTINGS_1"	=> GetMessage("SOCNET_LOG_PHOTO_GROUP_SETTINGS_1"),
				"TITLE_SETTINGS_2"	=> GetMessage("SOCNET_LOG_PHOTO_GROUP_SETTINGS_2"),
			);

		$arSocNetFeaturesSettings["photo"]["allowed"][] = SONET_ENTITY_GROUP;
		$arSocNetFeaturesSettings["photo"]["operations"]["write"][SONET_ENTITY_GROUP] = COption::GetOptionString("socialnetwork", "default_photo_operation_write_group", SONET_ROLES_MODERATOR);
		$arSocNetFeaturesSettings["photo"]["operations"]["view"][SONET_ENTITY_GROUP] = COption::GetOptionString("socialnetwork", "default_photo_operation_view_group", SONET_ROLES_USER);
	}
}

$bIntranet = IsModuleInstalled('intranet');
$bCalendar = ($bIntranet && CBXFeatures::IsFeatureEditable("calendar"));

if ($bCalendar)
{
	if (COption::GetOptionString("socialnetwork", "allow_calendar_user", "Y") == "Y" || COption::GetOptionString("socialnetwork", "allow_calendar_group", "Y") == "Y")
	{
		$arSocNetFeaturesSettings["calendar"] = array(
			"allowed" => array(),
			"operations" => array(
				"write" => array(),
				"view" => array(),
			),
			"minoperation" => array("view"),
/*
			"subscribe_events" => array(
				"calendar" =>  array(
开发者ID:ASDAFF,项目名称:bitrix-5,代码行数:31,代码来源:include.php

示例12: DoInstall

 function DoInstall()
 {
     global $DB, $APPLICATION, $step, $USER;
     if ($USER->IsAdmin()) {
         $step = IntVal($step);
         if (!CBXFeatures::IsFeatureEditable("Cluster")) {
             $this->errors = array(GetMessage("MAIN_FEATURE_ERROR_EDITABLE"));
             $GLOBALS["errors"] = $this->errors;
             $APPLICATION->IncludeAdminFile(GetMessage("CLU_INSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/cluster/install/step2.php");
         } elseif ($step < 2) {
             $APPLICATION->IncludeAdminFile(GetMessage("CLU_INSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/cluster/install/step1.php");
         } elseif ($step == 2) {
             if ($this->InstallDB()) {
                 $this->InstallFiles();
                 CBXFeatures::SetFeatureEnabled("Cluster", true);
             }
             $GLOBALS["errors"] = $this->errors;
             $APPLICATION->IncludeAdminFile(GetMessage("CLU_INSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/cluster/install/step2.php");
         }
     }
 }
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:21,代码来源:index.php

示例13: DoInstall

 function DoInstall()
 {
     global $DB, $APPLICATION, $USER, $step;
     $step = IntVal($step);
     if (!$USER->IsAdmin()) {
         return;
     }
     if (!check_bitrix_sessid()) {
         $step = 1;
     }
     if (!CBXFeatures::IsFeatureEditable("Meeting")) {
         $this->errors = array(GetMessage("MAIN_FEATURE_ERROR_EDITABLE"));
         $APPLICATION->ThrowException(implode("<br>", $this->errors));
         $GLOBALS["errors"] = $this->errors;
         $APPLICATION->IncludeAdminFile(GetMessage("MEETING_INSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/meeting/install/step2.php");
     } elseif ($step < 2) {
         $APPLICATION->IncludeAdminFile(GetMessage("MEETING_INSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/meeting/install/step1.php");
     } elseif ($step == 2) {
         if ($_REQUEST['install_public']) {
             global $meeting_folder;
             require_once "index_public.php";
         }
         $this->InstallDB(array());
         $this->InstallFiles(array());
         CBXFeatures::SetFeatureEnabled("Meeting", true);
         $GLOBALS["errors"] = $this->errors;
         $APPLICATION->IncludeAdminFile(GetMessage("MEETING_INSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/meeting/install/step2.php");
     }
 }
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:29,代码来源:index.php

示例14: DoInstall

 function DoInstall()
 {
     global $DB, $DOCUMENT_ROOT, $APPLICATION;
     if (!CBXFeatures::IsFeatureEditable('Tasks')) {
         $this->errors = array(GetMessage('MAIN_FEATURE_ERROR_EDITABLE'));
         $GLOBALS["errors"] = $this->errors;
         $APPLICATION->IncludeAdminFile(GetMessage('TASKS_INSTALL_TITLE'), $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/' . $this->MODULE_ID . '/install/step1.php');
     } elseif (!IsModuleInstalled("tasks")) {
         $this->InstallFiles();
         $this->InstallDB();
         $this->InstallEvents();
         $GLOBALS["errors"] = $this->errors;
         $APPLICATION->IncludeAdminFile(GetMessage("TASKS_INSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/tasks/install/step1.php");
     }
 }
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:15,代码来源:index.php

示例15: DoInstall

 function DoInstall()
 {
     global $DB, $APPLICATION, $step;
     $step = IntVal($step);
     if (!CBXFeatures::IsFeatureEditable('crm')) {
         $this->error = GetMessage('MAIN_FEATURE_ERROR_EDITABLE');
         $GLOBALS['errors'] = $this->error;
         $APPLICATION->IncludeAdminFile(GetMessage('CRM_INSTALL_TITLE'), $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/crm/install/step3.php');
     } elseif ($step < 2) {
         $APPLICATION->IncludeAdminFile(GetMessage('CRM_INSTALL_TITLE'), $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/crm/install/step1.php');
     } elseif ($step == 2) {
         $this->InstallDB();
         $this->InstallFiles();
         CBXFeatures::SetFeatureEnabled('crm', true);
         $APPLICATION->IncludeAdminFile(GetMessage('CRM_INSTALL_TITLE'), $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/crm/install/step3.php');
     }
     /*		elseif ($step == 3)
     		{
     			$this->__CreateUserFields();
     			$APPLICATION->IncludeAdminFile(GetMessage('CRM_INSTALL_TITLE'), $_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/crm/install/step3.php');
     			die();
     		}
     		else
     		{
     			echo mydump($step);
     			die();
     		} */
 }
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:28,代码来源:index.php


注:本文中的CBXFeatures::IsFeatureEditable方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。