1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
entitylabeltable.php
См. документацию.
1<?php
2namespace Bitrix\Sale\Internals;
3
4use Bitrix\Main\Localization\Loc;
5use Bitrix\Main\ORM\Data\DataManager;
6use Bitrix\Main\ORM\Fields\IntegerField;
7use Bitrix\Main\ORM\Fields\StringField;
8use Bitrix\Main\ORM\Fields\TextField;
9use Bitrix\Main\ORM\Fields\Validators\LengthValidator;
10
38
40{
46 public static function getTableName()
47 {
48 return 'b_sale_entity_label';
49 }
50
56 public static function getMap()
57 {
58 return [
59 new IntegerField(
60 'ID',
61 [
62 'primary' => true,
63 'autocomplete' => true,
64 ]
65 ),
66 new IntegerField(
67 'ENTITY_ID',
68 [
69 'required' => true,
70 ]
71 ),
72 new StringField(
73 'ENTITY_TYPE',
74 [
75 'required' => true,
76 'validation' => function()
77 {
78 return[
79 new LengthValidator(null, 255),
80 ];
81 },
82 ]
83 ),
84 new StringField(
85 'LABEL_NAME',
86 [
87 'required' => true,
88 'validation' => function()
89 {
90 return[
91 new LengthValidator(null, 255),
92 ];
93 },
94 ]
95 ),
96 new TextField(
97 'LABEL_VALUE',
98 ),
99 ];
100 }
101}