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