1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
type.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Main\Grid\Column;
4
5
use Bitrix\Main\Grid;
6
7
class
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:
48
$result
=
Grid\Editor\Types::TEXT
;
49
break
;
50
case
self::INT:
51
case
self::FLOAT:
52
case
self::NUMBER:
53
$result
=
Grid\Editor\Types::NUMBER
;
54
break
;
55
case
self::CHECKBOX:
56
$result
=
Grid\Editor\Types::CHECKBOX
;
57
break
;
58
case
self::DATE:
59
case
self::CALENDAR:
60
$result
=
Grid\Editor\Types::DATE
;
61
break
;
62
case
self::DROPDOWN:
63
case
self::SELECT:
64
$result
=
Grid\Editor\Types::DROPDOWN
;
65
break
;
66
case
self::MULTISELECT:
67
$result
=
Grid\Editor\Types::MULTISELECT
;
68
break
;
69
case
self::MONEY:
70
$result
=
Grid\Editor\Types::MONEY
;
71
break
;
72
case
self::FILE:
73
$result
=
Grid\Editor\Types::IMAGE
;
74
break
;
75
case
self::HTML:
76
$result
=
Grid\Editor\Types::CUSTOM
;
77
break
;
78
}
79
80
return
$result
;
81
}
82
}
$type
$type
Определения
options.php:106
Bitrix\Main\Grid\Column\Type\FLOAT
const FLOAT
Определения
type.php:15
Bitrix\Main\Grid\Column\Type\CHECKBOX
const CHECKBOX
Определения
type.php:11
Bitrix\Main\Grid\Column\Type\DATE
const DATE
Определения
type.php:17
Bitrix\Main\Grid\Column\Type\SELECT
const SELECT
Определения
type.php:26
Bitrix\Main\Grid\Column\Type\FILE
const FILE
Определения
type.php:27
Bitrix\Main\Grid\Column\Type\CUSTOM
const CUSTOM
Определения
type.php:21
Bitrix\Main\Grid\Column\Type\TAGS
const TAGS
Определения
type.php:12
Bitrix\Main\Grid\Column\Type\INPUT
const INPUT
Определения
type.php:24
Bitrix\Main\Grid\Column\Type\TEXT
const TEXT
Определения
type.php:10
Bitrix\Main\Grid\Column\Type\CALENDAR
const CALENDAR
Определения
type.php:25
Bitrix\Main\Grid\Column\Type\DROPDOWN
const DROPDOWN
Определения
type.php:18
Bitrix\Main\Grid\Column\Type\HTML
const HTML
Определения
type.php:28
Bitrix\Main\Grid\Column\Type\MONEY
const MONEY
Определения
type.php:20
Bitrix\Main\Grid\Column\Type\INT
const INT
Определения
type.php:14
Bitrix\Main\Grid\Column\Type\MULTISELECT
const MULTISELECT
Определения
type.php:19
Bitrix\Main\Grid\Column\Type\getEditorType
static getEditorType(string $type)
Определения
type.php:36
Bitrix\Main\Grid\Column\Type\NUMBER
const NUMBER
Определения
type.php:16
Bitrix\Main\Grid\Column\Type\LABELS
const LABELS
Определения
type.php:13
Bitrix\Main\Grid\Editor\Types\CHECKBOX
const CHECKBOX
Определения
types.php:13
Bitrix\Main\Grid\Editor\Types\DATE
const DATE
Определения
types.php:15
Bitrix\Main\Grid\Editor\Types\CUSTOM
const CUSTOM
Определения
types.php:19
Bitrix\Main\Grid\Editor\Types\TEXT
const TEXT
Определения
types.php:14
Bitrix\Main\Grid\Editor\Types\DROPDOWN
const DROPDOWN
Определения
types.php:12
Bitrix\Main\Grid\Editor\Types\MONEY
const MONEY
Определения
types.php:21
Bitrix\Main\Grid\Editor\Types\MULTISELECT
const MULTISELECT
Определения
types.php:22
Bitrix\Main\Grid\Editor\Types\IMAGE
const IMAGE
Определения
types.php:20
Bitrix\Main\Grid\Editor\Types\NUMBER
const NUMBER
Определения
types.php:16
$result
$result
Определения
get_property_values.php:14
Bitrix\Main\Type
Определения
collection.php:2
bitrix
modules
main
lib
grid
column
type.php
Создано системой
1.14.0