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