...Человеческий поиск в разработке...
- Модуль: sender
- Путь к файлу: ~/bitrix/modules/sender/lib/integration/seo/ads/messagemarketingfb.php
- Класс: Bitrix\Sender\Integration\Seo\Ads\MessageMarketingFb
- Вызов: MessageMarketingFb::loadConfiguration
public function loadConfiguration($id = null) { if (!$this->configuration->hasOptions()) { $this->setConfigurationOptions(); } Entity\Message::create() ->setCode($this->getCode()) ->loadConfiguration($id, $this->configuration); $self = $this; $configuration = $this->configuration; $this->configuration->setView( function () use ($self, $configuration) { $containerNodeId = 'seo-ads-' . $configuration->getId(); ob_start(); $provider = static::getAdsProvider( $self->getAdsType(), $configuration->getOption('CLIENT_ID')->getValue() ); $autoRemoveDays = $configuration->getOption('AUTO_REMOVE_DAY_NUMBER') ? $configuration->getOption('AUTO_REMOVE_DAY_NUMBER')->getValue() : null; $GLOBALS['APPLICATION']->IncludeComponent( 'bitrix:seo.ads.builder', '', array( 'INPUT_NAME_PREFIX' => 'CONFIGURATION_', 'CONTAINER_NODE_ID' => $containerNodeId, 'PROVIDER' => $provider, 'SUBTYPE' => $self->getAdsType(), 'ACCOUNT_ID' => $configuration->getOption('ACCOUNT_ID')->getValue(), 'CLIENT_ID' => $configuration->getOption('CLIENT_ID')->getValue(), 'AUTO_REMOVE_DAY_NUMBER' => $autoRemoveDays, 'JS_DESTROY_EVENT_NAME' => '', 'TITLE_NODE_SELECTOR' => '[data-role="letter-title"]', 'HAS_ACCESS' => true ) ); $result = ob_get_clean(); return $result; } ); return $this->configuration; }