Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
roundedit.php
1<?php
3
6
7Loc::loadMessages(__FILE__);
8
16{
23 public static function getPresetRoundValues($dropdownList = false): array
24 {
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}
static getPresetRoundValues($dropdownList=false)
Definition roundedit.php:23
static prepareFields(array &$fields)
Definition roundedit.php:47
static loadMessages($file)
Definition loc.php:64