- Модуль: sender
- Путь к файлу: ~/bitrix/modules/sender/lib/transport/timelimiter.php
- Класс: Bitrix\Sender\Transport\TimeLimiter
- Вызов: TimeLimiter::prepareMessageConfiguration
static function prepareMessageConfiguration($configuration)
{
$configuration->addOption(new Message\ConfigurationOption([
'type' => Message\ConfigurationOption::TYPE_CHECKBOX,
'code' => 'SENDING_TIME',
'group' => Message\ConfigurationOption::GROUP_ADDITIONAL,
'name' => Loc::getMessage('SENDER_INTEGRATION_MESSAGE_CONFIG_SENDING_TIME'),
'show_in_list' => false,
'required' => false,
'value' => Option::get('sender', 'sending_time')
]));
$configuration->addOption(new Message\ConfigurationOption([
'type' => Message\ConfigurationOption::TYPE_STRING,
'code' => 'SENDING_START',
'name' => Loc::getMessage('SENDER_INTEGRATION_MESSAGE_CONFIG_SENDING_START'),
'group' => Message\ConfigurationOption::GROUP_ADDITIONAL,
'show_in_list' => false,
'required' => false,
'value' => Option::get('sender', 'sending_start', TimeLimiter::DEFAULT_SENDING_START)
]));
$configuration->addOption(new Message\ConfigurationOption([
'type' => Message\ConfigurationOption::TYPE_STRING,
'code' => 'SENDING_END',
'name' => Loc::getMessage('SENDER_INTEGRATION_MESSAGE_CONFIG_SENDING_END'),
'group' => Message\ConfigurationOption::GROUP_ADDITIONAL,
'show_in_list' => false,
'required' => false,
'value' => Option::get('sender', 'sending_end', TimeLimiter::DEFAULT_SENDING_END)
]));
}