Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
limiter.php
1
<?php
9
namespace
Bitrix\Sender\Integration\VoxImplant
;
10
11
use
Bitrix\Main\Localization\Loc
;
12
use
Bitrix\Main\Config\Option
;
13
14
use
Bitrix\Sender\Transport
;
15
16
Loc::loadMessages
(__FILE__);
17
22
class
Limiter
implements
Transport\iLimiter
23
{
25
private
$parameters = array();
26
30
public
function
__construct
()
31
{
32
$this->
setParameter
(
'textView'
,
true
);
33
$this->
setParameter
(
'temporaryLimit'
,
true
);
34
}
40
public
function
getLimit
()
41
{
42
return
Option::get(
'sender'
,
'~call_limit'
, 5);
43
}
44
50
public
function
getCurrent
()
51
{
52
return
CallLogTable::getActualCallCount
();
53
}
54
60
public
function
getCaption
()
61
{
62
return
''
;
63
}
64
71
public
function
getParameter
($name)
72
{
73
return
isset($this->parameters[$name]) ? $this->parameters[$name] :
null
;
74
}
75
83
public
function
setParameter
($name, $value)
84
{
85
$this->parameters[$name] = $value;
86
return
$this;
87
}
88
94
public
function
getUnitName
()
95
{
96
return
Loc::getMessage
(
'SENDER_INTEGRATION_CALL_LIMITER_UNIT_NAME'
);
97
}
98
107
public
function
getUnit
()
108
{
109
return
null
;
110
}
111
115
public
function
isHidden
()
116
{
117
return
false
;
118
}
119
}
Bitrix\Main\Config\Option
Definition
option.php:15
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Sender\Integration\VoxImplant\CallLogTable\getActualCallCount
static getActualCallCount()
Definition
calllog.php:51
Bitrix\Sender\Integration\VoxImplant\Limiter
Definition
limiter.php:23
Bitrix\Sender\Integration\VoxImplant\Limiter\__construct
__construct()
Definition
limiter.php:30
Bitrix\Sender\Integration\VoxImplant\Limiter\setParameter
setParameter($name, $value)
Definition
limiter.php:83
Bitrix\Sender\Integration\VoxImplant\Limiter\getUnitName
getUnitName()
Definition
limiter.php:94
Bitrix\Sender\Integration\VoxImplant\Limiter\getUnit
getUnit()
Definition
limiter.php:107
Bitrix\Sender\Integration\VoxImplant\Limiter\getCaption
getCaption()
Definition
limiter.php:60
Bitrix\Sender\Integration\VoxImplant\Limiter\isHidden
isHidden()
Definition
limiter.php:115
Bitrix\Sender\Integration\VoxImplant\Limiter\getCurrent
getCurrent()
Definition
limiter.php:50
Bitrix\Sender\Integration\VoxImplant\Limiter\getLimit
getLimit()
Definition
limiter.php:40
Bitrix\Sender\Integration\VoxImplant\Limiter\getParameter
getParameter($name)
Definition
limiter.php:71
Bitrix\Sender\Transport\iLimiter
Definition
ilimiter.php:16
Bitrix\Sender\Integration\VoxImplant
Definition
audio.php:9
Bitrix\Sender\Transport
Definition
adapter.php:9
modules
sender
lib
integration
voximplant
limiter.php
Создано системой
1.10.0