• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/integration/crm/returncustomer/messagebase.php
  • Класс: Bitrix\Sender\Integration\Crm\ReturnCustomer\MessageBase
  • Вызов: MessageBase::createDaysAgoView
protected function createDaysAgoView()
{
	$dealDaysAgoOption = $this->configuration->getOption('DEAL_DAYS_AGO');
	$formPreviousOption = $this->configuration->getOption('FROM_PREVIOUS');

	if($dealDaysAgoOption && $formPreviousOption)
	{
		$dealDaysAgoOption->setView(
			function() use ($dealDaysAgoOption, $formPreviousOption)
			{
				$prefix = 'CONFIGURATION_';
				$daysAgoCode = htmlspecialcharsbx($prefix.$dealDaysAgoOption->getCode());
				$fromPreviousCode = htmlspecialcharsbx($prefix.$formPreviousOption->getCode());
				ob_start();
				Extension::load("sender.rc_editor");

				echo "";

				$params = \Bitrix\Main\Web\Json::encode(
					[
						'elementId' => $daysAgoCode,
						'conditionElementId' => $fromPreviousCode
					]
				);

				echo "";

				return ob_get_clean();
			}
		);
	}
}