1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
restrictioncurrencytrait.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Sale\Services\PaySystem\Restrictions;
4
5
use Bitrix\Sale\Services\Base\RestrictionInfo;
6
use Bitrix\Sale\Services\Base\RestrictionInfoCollection;
7
8
trait
RestrictionCurrencyTrait
9
{
10
abstract
public
function
getCurrencyList();
11
12
protected
function
getRestrictionCurrency
(
RestrictionInfoCollection
$collection): void
13
{
14
$currencyList = $this->getCurrencyList();
15
if
(!empty($currencyList) && is_array($currencyList))
16
{
17
$currencyRestrictionContainer =
new
RestrictionInfo
(
18
'Currency'
,
19
[
20
'CURRENCY'
=> $currencyList,
21
]
22
);
23
$collection->
add
($currencyRestrictionContainer);
24
}
25
}
26
}
Bitrix\Sale\Services\Base\RestrictionInfoCollection
Определения
restrictioninfocollection.php:6
Bitrix\Sale\Services\Base\RestrictionInfoCollection\add
add(RestrictionInfo $restrictionInfo)
Определения
restrictioninfocollection.php:19
Bitrix\Sale\Services\Base\RestrictionInfo
Определения
restrictioninfo.php:6
Bitrix\Sale\Services\PaySystem\Restrictions\RestrictionCurrencyTrait
trait RestrictionCurrencyTrait
Определения
restrictioncurrencytrait.php:9
Bitrix\Sale\Services\PaySystem\Restrictions\getRestrictionCurrency
getRestrictionCurrency(RestrictionInfoCollection $collection)
Определения
restrictioncurrencytrait.php:12
bitrix
modules
sale
lib
services
paysystem
restrictions
restrictioncurrencytrait.php
Создано системой
1.14.0