1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
SmsPerIp.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\MessageService\Restriction;
4
5
use Bitrix\Main\Context;
6
7
class
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
}
Bitrix\MessageService\Restriction\Base
Определения
Base.php:12
Bitrix\MessageService\Restriction\SmsPerIp
Определения
SmsPerIp.php:8
Bitrix\MessageService\Restriction\SmsPerIp\getEntityId
getEntityId()
Определения
SmsPerIp.php:9
Bitrix\MessageService\Restriction\SmsPerIp\getEntity
getEntity()
Определения
SmsPerIp.php:19
Bitrix\MessageService\Restriction\SmsPerIp\getDefaultLimit
getDefaultLimit()
Определения
SmsPerIp.php:24
Bitrix\MessageService\Restriction\SmsPerIp\getOptionLimitName
getOptionLimitName()
Определения
SmsPerIp.php:14
bitrix
modules
messageservice
lib
Restriction
SmsPerIp.php
Создано системой
1.14.0