- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/integration/socialnetwork/livefeed/crmentitycomment.php
- Класс: Bitrix\Crm\Integration\Socialnetwork\Livefeed\CrmEntityComment
- Вызов: CrmEntityComment::getSuffix
public function getSuffix(): string
{
$logEventId = $this->getLogEventId();
if (!empty($logEventId))
{
$providerCrmLead = new CrmLead();
if (in_array($logEventId, $providerCrmLead->getMessageEventId(), true))
{
return 'LEAD_MESSAGE';
}
if (in_array($logEventId, $providerCrmLead->getEventId(), true))
{
return 'LEAD';
}
$providerCrmContact = new CrmContact();
if (in_array($logEventId, $providerCrmContact->getMessageEventId(), true))
{
return 'CONTACT_MESSAGE';
}
if (in_array($logEventId, $providerCrmContact->getEventId(), true))
{
return 'CONTACT';
}
$providerCrmCompany = new CrmCompany();
if(in_array($logEventId, $providerCrmCompany->getMessageEventId(), true))
{
return 'COMPANY_MESSAGE';
}
if (in_array($logEventId, $providerCrmCompany->getEventId(), true))
{
return 'COMPANY';
}
$providerCrmDeal = new CrmDeal();
if (in_array($logEventId, $providerCrmDeal->getMessageEventId(), true))
{
return 'DEAL_MESSAGE';
}
if (in_array($logEventId, $providerCrmDeal->getEventId(), true))
{
return 'DEAL';
}
$providerCrmInvoice = new CrmInvoice();
if (in_array($logEventId, $providerCrmInvoice->getEventId(), true))
{
return 'INVOICE';
}
$providerCrmActivity = new CrmActivity();
if (in_array($logEventId, $providerCrmActivity->getEventId(), true))
{
return 'ACTIVITY';
}
}
return '';
}