Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Informant.php
1<?php
2
4
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}