File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/modules/sender/lib/integration/seo/ads/messagelookalikefb.php
Back
<?php /** * Bitrix Framework * @package bitrix * @subpackage sender * @copyright 2001-2020 Bitrix */ namespace Bitrix\Sender\Integration\Seo\Ads; use Bitrix\Main\Localization\Loc; /** * Class MessageLookalikeFb * @package Bitrix\Sender\Integration\Seo\Ads */ class MessageLookalikeFb extends MessageLookalike { const CODE = self::CODE_ADS_LOOKALIKE_FB; /** * Get name. * @return string */ public function getName() { return Loc::getMessage('SENDER_INTEGRATION_SEO_MESSAGE_NAME_ADS_LOOKALIKE_FB'); } protected function setConfigurationOptions() { $this->configuration->setArrayOptions(array( array( 'type' => 'string', 'code' => 'CLIENT_ID', 'name' => Loc::getMessage('SENDER_INTEGRATION_SEO_MESSAGE_CONFIG_CLIENT_ID'), 'required' => true, ), array( 'type' => 'string', 'code' => 'ACCOUNT_ID', 'name' => Loc::getMessage('SENDER_INTEGRATION_SEO_MESSAGE_CONFIG_ACCOUNT_ID'), 'required' => true, ), array( 'type' => 'string', 'code' => 'AUDIENCE_ID', 'name' => Loc::getMessage('SENDER_INTEGRATION_SEO_MESSAGE_CONFIG_AUDIENCE_ID'), 'required' => true, ), array( 'type' => 'string', 'code' => 'AUDIENCE_SIZE', 'name' => Loc::getMessage('SENDER_INTEGRATION_SEO_MESSAGE_CONFIG_AUDIENCE_SIZE'), 'required' => false, ), array( 'type' => 'string', 'code' => 'AUDIENCE_REGION', 'name' => Loc::getMessage('SENDER_INTEGRATION_SEO_MESSAGE_CONFIG_AUDIENCE_REGION'), 'required' => false, ) )); } public function getLookalikeOptions() { $config = $this->configuration; return [ 'AUDIENCE_SIZE' => $config->get('AUDIENCE_SIZE'), 'AUDIENCE_REGION' => $config->get('AUDIENCE_REGION'), ]; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.27 |
proxy
|
phpinfo
|
Settings