Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
entitymarker.php
1<?php
2
4
7Loc::loadMessages(__FILE__);
8
27class EntityMarkerTable extends Main\Entity\DataManager
28{
34 public static function getTableName()
35 {
36 return 'b_sale_entity_marker';
37 }
38
44 public static function getMap()
45 {
46 return array(
47 new Main\Entity\IntegerField(
48 'ID',
49 array(
50 'autocomplete' => true,
51 'primary' => true,
52 )
53 ),
54
55 new Main\Entity\IntegerField('ORDER_ID'),
56
57 new Main\Entity\StringField(
58 'ENTITY_TYPE',
59 array(
60 'size' => 25,
61 )
62 ),
63
64 new Main\Entity\IntegerField('ENTITY_ID'),
65
66 new Main\Entity\StringField(
67 'TYPE',
68 array(
69 'size' => 10,
70 )
71 ),
72
73 new Main\Entity\StringField(
74 'CODE',
75 array(
76 'size' => 255,
77 'validation' => array(__CLASS__, 'validateComment')
78 )
79 ),
80
81 new Main\Entity\StringField(
82 'MESSAGE',
83 array(
84 'size' => 255,
85 'validation' => array(__CLASS__, 'validateMessage')
86 )
87 ),
88
89 new Main\Entity\StringField(
90 'COMMENT',
91 array(
92 'size' => 500,
93 'validation' => array(__CLASS__, 'validateComment')
94 )
95 ),
96
97 new Main\Entity\IntegerField('USER_ID'),
98
99 new Main\Entity\DatetimeField(
100 'DATE_CREATE'
101 ),
102
103 new Main\Entity\DatetimeField(
104 'DATE_UPDATE'
105 ),
106
107 new Main\Entity\BooleanField(
108 'SUCCESS',
109 array(
110 'size' => 1,
111 'validation' => array(__CLASS__, 'validateSuccess')
112 )
113 ),
114 );
115 }
116
122 public static function validateCode()
123 {
124 return array(
125 new Main\Entity\Validator\Length(null, 255),
126 );
127 }
128
134 public static function validateMessage()
135 {
136 return array(
137 new Main\Entity\Validator\Length(null, 255),
138 );
139 }
140
146 public static function validateComment()
147 {
148 return array(
149 new Main\Entity\Validator\Length(null, 255),
150 );
151 }
152
158 public static function validateSuccess()
159 {
160 return array(
161 new Main\Entity\Validator\Length(null, 1),
162 );
163 }
164}
static loadMessages($file)
Definition loc.php:64