CCrmOwnerType::getAllSuspended

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmOwnerType
  4. getAllSuspended
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_owner_type.php
  • Класс: \CCrmOwnerType
  • Вызов: CCrmOwnerType::getAllSuspended
static function  getAllSuspended(): array
{
	$suspended = [
		self::SuspendedLead,
		self::SuspendedDeal,
		self::SuspendedContact,
		self::SuspendedCompany,
		self::SuspendedQuote,
		self::SuspendedInvoice,
		self::SuspendedOrder,
		self::SuspendedActivity,
		self::SuspendedRequisite,
		self::SuspendedSmartInvoice,
	];

	$map = Container::getInstance()->getDynamicTypesMap()->load([
		'isLoadStages' => false,
		'isLoadCategories' => false,
	]);
	foreach ($map->getTypes() as $type)
	{
		$suspended[] = self::getSuspendedDynamicTypeId($type->getEntityTypeId());
	}

	return array_unique($suspended);
}

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