Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
roundedit.php
1
<?php
2
namespace
Bitrix\Currency\Helpers\Admin
;
3
4
use
Bitrix\Main
,
5
Bitrix\Main\Localization\Loc
,
6
Bitrix\Currency
;
7
8
Loc::loadMessages
(__FILE__);
15
class
RoundEdit
16
{
23
public
static
function
getPresetRoundValues
($dropdownList =
false
)
24
{
25
$result = array(
26
0.0001,
27
0.001,
28
0.005,
29
0.01,
30
0.02,
31
0.05,
32
0.1,
33
0.2,
34
0.5,
35
1,
36
2,
37
5,
38
10,
39
20,
40
50,
41
100,
42
200,
43
500,
44
1000,
45
5000
46
);
47
if
(!$dropdownList)
48
return
$result;
49
$list = array();
50
foreach
($result as $value)
51
{
52
$value = (string)$value;
53
$list[$value] = $value;
54
}
55
return
$list;
56
}
57
64
public
static
function
prepareFields
(array &$fields)
65
{
66
if
(isset($fields[
'ROUND_TYPE'
]))
67
$fields[
'ROUND_TYPE'
] = (int)$fields[
'ROUND_TYPE'
];
68
}
69
}
Bitrix\Currency\Helpers\Admin\RoundEdit
Definition
roundedit.php:16
Bitrix\Currency\Helpers\Admin\RoundEdit\getPresetRoundValues
static getPresetRoundValues($dropdownList=false)
Definition
roundedit.php:23
Bitrix\Currency\Helpers\Admin\RoundEdit\prepareFields
static prepareFields(array &$fields)
Definition
roundedit.php:64
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Currency\Helpers\Admin
Definition
roundedit.php:2
Bitrix\Currency
Bitrix\Main
modules
currency
lib
helpers
admin
roundedit.php
Создано системой
1.10.0