Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
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\Main\Context\getCurrent
static getCurrent()
Definition
context.php:241
Bitrix\MessageService\Restriction\Base
Definition
Base.php:12
Bitrix\MessageService\Restriction\SmsPerIp
Definition
SmsPerIp.php:8
Bitrix\MessageService\Restriction\SmsPerIp\getEntityId
getEntityId()
Definition
SmsPerIp.php:9
Bitrix\MessageService\Restriction\SmsPerIp\getEntity
getEntity()
Definition
SmsPerIp.php:19
Bitrix\MessageService\Restriction\SmsPerIp\getDefaultLimit
getDefaultLimit()
Definition
SmsPerIp.php:24
Bitrix\MessageService\Restriction\SmsPerIp\getOptionLimitName
getOptionLimitName()
Definition
SmsPerIp.php:14
Bitrix\Main\Context
Definition
culture.php:9
Bitrix\MessageService\Restriction
Definition
Base.php:3
modules
messageservice
lib
Restriction
SmsPerIp.php
Создано системой
1.10.0