1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Informant.php
См. документацию.
1<?php
2
3namespace Bitrix\MessageService\Providers\Base;
4
5use Bitrix\MessageService\MessageType;
6use Bitrix\MessageService\Providers;
7
8abstract class Informant implements Providers\Informant
9{
10 public function getType(): string
11 {
12 return MessageType::SMS;
13 }
14
15 public function getExternalId(): string
16 {
17 return $this->getType() . ':' . $this->getId();
18 }
19
20 public function getManageUrl(): string
21 {
22 if (defined('ADMIN_SECTION') && ADMIN_SECTION === true)
23 {
24 return 'messageservice_sender_sms.php?sender_id='.$this->getId();
25 }
26
27 return $this->isConfigurable() ? '/crm/configs/sms/?sender=' . $this->getId() : '';
28 }
29}
const ADMIN_SECTION
Определения rss.php:2