• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/entity/messagebuilder/basebuilder.php
  • Класс: Bitrix\Crm\Entity\MessageBuilder\BaseBuilder
  • Вызов: BaseBuilder::buildCode
public function buildCode(): string;

/**
 * Method to build default phrase code
 *
 * @return string
 */
abstract protected function buildDefaultCode(): string;

public function __construct(int $entityTypeId, int $entityId = null)
{
	$this->entityTypeId = $entityTypeId;

	if (isset($entityId))
	{
		$this->entityId = $entityId;
	}

	// fill replace list
	$this->replaceList['#ENTITY_TYPE_CAPTION#'] = htmlspecialcharsbx(CCrmOwnerType::GetDescription($this->entityTypeId));
}