Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
ratemanager.php
1
<?php
2
3
namespace
Bitrix\Conversion
;
4
5
final
class
RateManager
extends
Internals\TypeManager
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
}
Bitrix\Conversion\Internals\TypeManager
Definition
typemanager.php:11
Bitrix\Conversion\RateManager
Definition
ratemanager.php:6
Bitrix\Conversion\RateManager\getRatesCounters
static getRatesCounters(array $types)
Definition
ratemanager.php:13
Bitrix\Conversion\RateManager\$event
static $event
Definition
ratemanager.php:7
Bitrix\Conversion\RateManager\$ready
static $ready
Definition
ratemanager.php:9
Bitrix\Conversion\RateManager\$types
static $types
Definition
ratemanager.php:8
Bitrix\Conversion\RateManager\$checkModule
static $checkModule
Definition
ratemanager.php:10
Bitrix\Conversion\RateManager\getRatesCalculated
static getRatesCalculated(array $types, array $counters)
Definition
ratemanager.php:25
Bitrix\Conversion
Definition
attributegroupmanager.php:3
modules
conversion
lib
ratemanager.php
Создано системой
1.10.0