Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
SmsPerUser.php
1
<?php
2
3
namespace
Bitrix\MessageService\Restriction
;
4
5
use
Bitrix\Main\Engine\CurrentUser
;
6
7
class
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
}
Bitrix\Main\Engine\CurrentUser
Definition
currentuser.php:8
Bitrix\MessageService\Restriction\Base
Definition
Base.php:12
Bitrix\MessageService\Restriction\SmsPerUser
Definition
SmsPerUser.php:8
Bitrix\MessageService\Restriction\SmsPerUser\getEntityId
getEntityId()
Definition
SmsPerUser.php:11
Bitrix\MessageService\Restriction\SmsPerUser\getEntity
getEntity()
Definition
SmsPerUser.php:21
Bitrix\MessageService\Restriction\SmsPerUser\getDefaultLimit
getDefaultLimit()
Definition
SmsPerUser.php:26
Bitrix\MessageService\Restriction\SmsPerUser\getOptionLimitName
getOptionLimitName()
Definition
SmsPerUser.php:16
Bitrix\MessageService\Restriction
Definition
Base.php:3
modules
messageservice
lib
Restriction
SmsPerUser.php
Создано системой
1.10.0