CBP::isFeatureEnabled

  1. Bitrix24 API (v. 23.675.0)
  2. bizproc
  3. CBP
  4. isFeatureEnabled
  • Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/classes/general/runtime.php
  • Класс: CBP
  • Вызов: CBP::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];
}

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