Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Parameterizable.php
1<?php
2
4
6
8{
9 abstract protected function getCurrentAdditionalParam(): string;
10 protected function insertCounter(): void
11 {
12 RestrictionTable::insertCounterWithParam($this->getEntityId(), $this->getCurrentAdditionalParam());
13 }
14
15 protected function updateCounter(): bool
16 {
17 if (in_array($this->getCurrentAdditionalParam(), $this->additionalParams))
18 {
19 return true;
20 }
21
22 return RestrictionTable::updateCounterWithParam($this->getEntityId(), $this->limit, $this->getCurrentAdditionalParam());
23 }
24}