• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Service/Timeline/Item/Activity/Email.php
  • Класс: Bitrix\Crm\Service\Timeline\Item\Activity\Email
  • Вызов: Email::getContentBlocks
public function getContentBlocks(): array
{
	$result = [];

	$subjectBlock = $this->buildSubjectBlock();
	if (isset($subjectBlock))
	{
		$result['subject'] = $subjectBlock;
	}

	// @todo To write a list of contacts for the web version, to lead to a single set of parameters
	$recipientBlock = $this->buildRecipientBlock();
	if (isset($recipientBlock))
	{
		$result['recipient'] = $recipientBlock->setScopeWeb();
	}

	$recipientBlock = $this->buildRecipientBlock(false);
	if (isset($recipientBlock))
	{
		$result['recipientMob'] = $recipientBlock->setScopeMobile();
	}

	$senderBlock = $this->buildSenderBlock();
	if (isset($senderBlock))
	{
		$result['sender'] = $senderBlock->setScopeWeb();
	}

	$senderBlock = $this->buildSenderBlock(false);
	if (isset($senderBlock))
	{
		$result['senderMob'] = $senderBlock->setScopeMobile();
	}

	return $result;
}