Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
userfieldlangtable.php
1<?php
2
3namespace Bitrix\Main;
4
7
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}
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29