CBPDocumentService::isFeatureEnabled

  1. Bitrix24 API (v. 23.675.0)
  2. bizproc
  3. CBPDocumentService
  4. isFeatureEnabled
  • Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/classes/general/documentservice.php
  • Класс: CBPDocumentService
  • Вызов: CBPDocumentService::isFeatureEnabled
public function isFeatureEnabled($parameterDocumentType, $feature)
{
	[$moduleId, $entity, $documentType] = CBPHelper::ParseDocumentId($parameterDocumentType);

	if ($moduleId)
	{
		CModule::IncludeModule($moduleId);
	}

	if (class_exists($entity) && method_exists($entity, 'isFeatureEnabled'))
		return call_user_func_array(array($entity, 'isFeatureEnabled'), array($documentType, $feature));

	return false;
}

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