...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_owner_type.php
- Класс: \CCrmOwnerType
- Вызов: CCrmOwnerType::GetAllDescriptions
static function GetAllDescriptions(): array { if (!isset(self::$ALL_DESCRIPTIONS[LANGUAGE_ID])) { IncludeModuleLangFile(__FILE__); self::$ALL_DESCRIPTIONS[LANGUAGE_ID] = [ self::Lead => GetMessage('CRM_OWNER_TYPE_LEAD'), self::Deal => GetMessage('CRM_OWNER_TYPE_DEAL'), self::Contact => GetMessage('CRM_OWNER_TYPE_CONTACT'), self::Company => GetMessage('CRM_OWNER_TYPE_COMPANY'), self::Invoice => Container::getInstance()->getLocalization()->appendOldVersionSuffix(GetMessage('CRM_OWNER_TYPE_INVOICE')), self::SmartInvoice => GetMessage('CRM_OWNER_TYPE_INVOICE'), self::Quote => GetMessage('CRM_OWNER_TYPE_QUOTE_MSGVER_1'), self::Requisite => GetMessage('CRM_OWNER_TYPE_REQUISITE'), self::DealCategory => GetMessage('CRM_OWNER_TYPE_DEAL_CATEGORY'), self::DealRecurring => GetMessage('CRM_OWNER_TYPE_RECURRING_DEAL'), self::Activity => GetMessage('CRM_OWNER_TYPE_ACTIVITY'), self::CustomActivityType => GetMessage('CRM_OWNER_TYPE_CUSTOM_ACTIVITY_TYPE'), self::System => GetMessage('CRM_OWNER_TYPE_SYSTEM'), self::Order => GetMessage('CRM_OWNER_TYPE_ORDER'), self::OrderShipment => GetMessage('CRM_OWNER_TYPE_ORDER_SHIPMENT'), self::OrderPayment => GetMessage('CRM_OWNER_TYPE_ORDER_PAYMENT'), self::SmartDocument => GetMessage('CRM_OWNER_TYPE_SMART_DOCUMENT'), ]; $dynamicTypesMap = Container::getInstance()->getDynamicTypesMap(); $dynamicTypesMap->load([ 'isLoadCategories' => false, 'isLoadStages' => false, ]); foreach ($dynamicTypesMap->getTypes() as $type) { self::$ALL_DESCRIPTIONS[LANGUAGE_ID][$type->getEntityTypeId()] = $type->getTitle(); } } return self::$ALL_DESCRIPTIONS[LANGUAGE_ID]; }