Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
userfieldlangtable.php
1
<?php
2
3
namespace
Bitrix\Main
;
4
5
use
Bitrix\Main\Localization\Loc
;
6
use
Bitrix\Main\ORM
;
7
24
class
UserFieldLangTable
extends
ORM\Data\DataManager
25
{
26
public
static
function
getTableName
(): string
27
{
28
return
'b_user_field_lang'
;
29
}
30
31
public
static
function
getMap
(): array
32
{
33
return
[
34
(
new
ORM\Fields\IntegerField
(
'USER_FIELD_ID'
))
35
->configurePrimary()
36
->configureRequired(),
37
(
new
ORM\Fields\StringField
(
'LANGUAGE_ID'
))
38
->configurePrimary()
39
->configureRequired()
40
->configureSize(2),
41
(
new
ORM\Fields\StringField
(
'EDIT_FORM_LABEL'
))
42
->configureSize(255)
43
->configureTitle(
Loc::getMessage
(
'MAIN_USER_FIELD_LANG_TABLE_EDIT_FORM_LABEL_TITLE'
)),
44
(
new
ORM\Fields\
StringField
(
'LIST_COLUMN_LABEL'
))
45
->configureSize(255)
46
->configureTitle(
Loc::getMessage
(
'MAIN_USER_FIELD_LANG_TABLE_LIST_COLUMN_LABEL_TITLE'
)),
47
(
new
ORM\Fields\
StringField
(
'LIST_FILTER_LABEL'
))
48
->configureSize(255)
49
->configureTitle(
Loc::getMessage
(
'MAIN_USER_FIELD_LANG_TABLE_LIST_FILTER_LABEL_TITLE'
)),
50
(
new
ORM\Fields\
StringField
(
'ERROR_MESSAGE'
))
51
->configureSize(255)
52
->configureTitle(
Loc::getMessage
(
'MAIN_USER_FIELD_LANG_TABLE_ERROR_MESSAGE_TITLE'
)),
53
(
new
ORM\Fields\
StringField
(
'HELP_MESSAGE'
))
54
->configureSize(255)
55
->configureTitle(
Loc::getMessage
(
'MAIN_USER_FIELD_LANG_TABLE_HELP_MESSAGE_TITLE'
)),
56
(
new
ORM\Fields\Relations\
Reference
(
57
'USER_FIELD'
,
58
UserFieldTable::class,
59
[
60
'=this.USER_FIELD_ID'
=>
'ref.ID'
,
61
])),
62
];
63
}
64
}
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Main\ORM\Data\DataManager
Definition
datamanager.php:33
Bitrix\Main\ORM\Fields\IntegerField
Definition
integerfield.php:20
Bitrix\Main\ORM\Fields\Relations\Reference
Definition
reference.php:26
Bitrix\Main\ORM\Fields\StringField
Definition
stringfield.php:20
Bitrix\Main\UserFieldLangTable
Definition
userfieldlangtable.php:25
Bitrix\Main\UserFieldLangTable\getMap
static getMap()
Definition
userfieldlangtable.php:31
Bitrix\Main\UserFieldLangTable\getTableName
static getTableName()
Definition
userfieldlangtable.php:26
Bitrix\Main\ORM
Bitrix\Main
modules
main
lib
userfieldlangtable.php
Создано системой
1.10.0