- Модуль: sender
- Путь к файлу: ~/bitrix/modules/sender/lib/integration/crm/connectors/helper.php
- Класс: Bitrix\Sender\Integration\Crm\Connectors\Helper
- Вызов: Helper::onResultViewDraw
public function onResultViewDraw(array &$row) { switch ($row['CRM_ENTITY_TYPE_ID']) { case \CCrmOwnerType::Company: $crmRow = \Bitrix\Crm\CompanyTable::getRowById($row['CRM_ENTITY_ID']); $row['~NAME'] = self::getResultViewTitle( $row['CRM_ENTITY_TYPE_ID'], $row['CRM_ENTITY_ID'], $row['NAME'], \CCrmOwnerType::GetDescription($row['CRM_ENTITY_TYPE_ID']), self::getCrmStatusName('COMPANY_TYPE', $crmRow['COMPANY_TYPE']) ); break; case \CCrmOwnerType::Contact: $crmRow = \Bitrix\Crm\ContactTable::getRowById($row['CRM_ENTITY_ID']); $row['~NAME'] = self::getResultViewTitle( $row['CRM_ENTITY_TYPE_ID'], $row['CRM_ENTITY_ID'], $row['NAME'], \CCrmOwnerType::GetDescription($row['CRM_ENTITY_TYPE_ID']), self::getCrmStatusName('SOURCE', $crmRow['SOURCE_ID']) ); break; case \CCrmOwnerType::Lead: $crmRow = \Bitrix\Crm\LeadTable::getRowById($row['CRM_ENTITY_ID']); $row['CRM_LEAD'] = $row['~CRM_LEAD'] = self::getResultViewTitle( $row['CRM_ENTITY_TYPE_ID'], $row['CRM_ENTITY_ID'], $crmRow['TITLE'], self::getCrmStatusName('SOURCE', $crmRow['SOURCE_ID']), $crmRow['IS_RETURN_CUSTOMER'] === 'Y' ? Loc::getMessage('SENDER_INTEGRATION_CRM_CONNECTOR_LEAD_FIELD_RC_LEAD') : null ); break; } }