Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
SmsPerIp.php
1<?php
2
4
6
7class SmsPerIp extends Base
8{
9 public function getEntityId(): string
10 {
11 return 'spip_' . $this->getEntity();
12 }
13
14 protected function getOptionLimitName(): string
15 {
16 return 'network_restriction_sms_per_ip';
17 }
18
19 protected function getEntity(): string
20 {
21 return (string)Context::getCurrent()->getServer()->getRemoteAddr();
22 }
23
24 protected function getDefaultLimit(): int
25 {
26 return 0;
27 }
28}
static getCurrent()
Definition context.php:241