Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
ratemanager.php
1<?php
2
3namespace Bitrix\Conversion;
4
6{
7 static protected $event = 'OnGetRateTypes';
8 static protected $types = array();
9 static protected $ready = false;
10 static protected $checkModule = true;
11
13 static public function getRatesCounters(array $types)
14 {
15 $counters = array();
16
17 foreach ($types as $type)
18 {
19 $counters = array_merge($counters, $type['COUNTERS']);
20 }
21
22 return array_unique($counters);
23 }
24
25 static public function getRatesCalculated(array $types, array $counters)
26 {
27 $rates = array();
28
29 foreach ($types as $name => $type)
30 {
31 $rates[$name] = $type['CALCULATE']($counters);
32 }
33
34 return $rates;
35 }
36}
static getRatesCounters(array $types)
static getRatesCalculated(array $types, array $counters)