1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
type.php
См. документацию.
1<?php
2
3namespace Bitrix\Main\Grid\Column;
4
5use Bitrix\Main\Grid;
6
7class Type
8{
9 // main.ui.grid constants
10 public const TEXT = 'text';
11 public const CHECKBOX = 'checkbox';
12 public const TAGS = 'tags';
13 public const LABELS = 'labels';
14 public const INT = 'int';
15 public const FLOAT = 'double';
16 public const NUMBER = 'number';
17 public const DATE = 'date';
18 public const DROPDOWN = 'list';
19 public const MULTISELECT = 'multiselect';
20 public const MONEY = 'money';
21 public const CUSTOM = 'custom';
22
23 // \CAdminListRow constants
24 public const INPUT = 'input';
25 public const CALENDAR = 'calendar';
26 public const SELECT = 'select';
27 public const FILE = 'file';
28 public const HTML = 'html';
29
36 public static function getEditorType(string $type): ?string
37 {
38 $result = null;
39
40 if ($type === '')
41 {
42 $type = self::TEXT;
43 }
44 switch ($type)
45 {
46 case self::TEXT:
47 case self::INPUT:
49 break;
50 case self::INT:
51 case self::FLOAT:
52 case self::NUMBER:
54 break;
55 case self::CHECKBOX:
57 break;
58 case self::DATE:
59 case self::CALENDAR:
61 break;
62 case self::DROPDOWN:
63 case self::SELECT:
65 break;
66 case self::MULTISELECT:
68 break;
69 case self::MONEY:
71 break;
72 case self::FILE:
74 break;
75 case self::HTML:
77 break;
78 }
79
80 return $result;
81 }
82}
$type
Определения options.php:106
const FLOAT
Определения type.php:15
const CHECKBOX
Определения type.php:11
const DATE
Определения type.php:17
const SELECT
Определения type.php:26
const FILE
Определения type.php:27
const CUSTOM
Определения type.php:21
const TAGS
Определения type.php:12
const INPUT
Определения type.php:24
const TEXT
Определения type.php:10
const CALENDAR
Определения type.php:25
const DROPDOWN
Определения type.php:18
const HTML
Определения type.php:28
const MONEY
Определения type.php:20
const INT
Определения type.php:14
const MULTISELECT
Определения type.php:19
static getEditorType(string $type)
Определения type.php:36
const NUMBER
Определения type.php:16
const LABELS
Определения type.php:13
const CHECKBOX
Определения types.php:13
const DATE
Определения types.php:15
const CUSTOM
Определения types.php:19
const TEXT
Определения types.php:14
const DROPDOWN
Определения types.php:12
const MONEY
Определения types.php:21
const MULTISELECT
Определения types.php:22
const IMAGE
Определения types.php:20
const NUMBER
Определения types.php:16
$result
Определения get_property_values.php:14
Определения collection.php:2