Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
roundedit.php
1
<?php
2
namespace
Bitrix\Catalog\Helpers\Admin
;
3
4
use
Bitrix\Catalog\RoundingTable
;
5
use
Bitrix\Main\Localization\Loc
;
6
7
Loc::loadMessages
(__FILE__);
8
15
class
RoundEdit
16
{
23
public
static
function
getPresetRoundValues
($dropdownList =
false
): array
24
{
25
$result =
RoundingTable::getPresetRoundingValues
();
26
if
(!$dropdownList)
27
{
28
return
$result;
29
}
30
31
$list = [];
32
foreach
($result as $value)
33
{
34
$value = (string)$value;
35
$list[$value] = $value;
36
}
37
38
return
$list;
39
}
40
47
public
static
function
prepareFields
(array &$fields): void
48
{
49
if
(isset($fields[
'ROUND_TYPE'
]))
50
{
51
$fields[
'ROUND_TYPE'
] = (int)$fields[
'ROUND_TYPE'
];
52
}
53
}
54
}
Bitrix\Catalog\Helpers\Admin\RoundEdit
Definition
roundedit.php:16
Bitrix\Catalog\Helpers\Admin\RoundEdit\getPresetRoundValues
static getPresetRoundValues($dropdownList=false)
Definition
roundedit.php:23
Bitrix\Catalog\Helpers\Admin\RoundEdit\prepareFields
static prepareFields(array &$fields)
Definition
roundedit.php:47
Bitrix\Catalog\RoundingTable
Definition
rounding.php:50
Bitrix\Catalog\RoundingTable\getPresetRoundingValues
static getPresetRoundingValues()
Definition
rounding.php:466
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Catalog\Helpers\Admin
Definition
catalogedit.php:2
modules
catalog
lib
helpers
admin
roundedit.php
Создано системой
1.10.0