Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
SmsPerUser.php
1<?php
2
4
6
7class SmsPerUser extends Base
8{
9 use SkippingUnauthorized;
10
11 public function getEntityId(): string
12 {
13 return 'spu_' . $this->getEntity();
14 }
15
16 protected function getOptionLimitName(): string
17 {
18 return 'network_restriction_sms_per_user';
19 }
20
21 protected function getEntity(): string
22 {
23 return (string)($this->message->getAuthorId() ?: CurrentUser::get()->getId());
24 }
25
26 protected function getDefaultLimit(): int
27 {
28 return 4;
29 }
30}