CBPRuntime::isFeatureEnabled

  1. Bitrix24 API (v. 23.675.0)
  2. bizproc
  3. CBPRuntime
  4. isFeatureEnabled
  • Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/classes/general/runtime.php
  • Класс: CBPRuntime
  • Вызов: CBPRuntime::isFeatureEnabled
static function isFeatureEnabled($featureName = '')
{
	if (!CModule::IncludeModule('bitrix24'))
		return true;

	$featureName = (string)$featureName;

	if ($featureName === '')
		$featureName = 'bizproc';

	if (!isset(static::$featuresCache[$featureName]))
		static::$featuresCache[$featureName] = BitrixBitrix24Feature::isFeatureEnabled($featureName);

	return static::$featuresCache[$featureName];
}

Добавить комментарий