Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
limiter.php
1<?php
10
13
15
16Loc::loadMessages(__FILE__);
17
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 {
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}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29