Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
entitymarker.php
1
<?php
2
3
namespace
Bitrix\Sale\Internals
;
4
5
use
Bitrix\Main
,
6
Bitrix\Main\Localization\Loc
;
7
Loc::loadMessages
(__FILE__);
8
27
class
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
}
Bitrix\Catalog\Model\Entity
Definition
entity.php:12
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Main\ORM\Fields\BooleanField
Definition
booleanfield.php:20
Bitrix\Main\ORM\Fields\DatetimeField
Definition
datetimefield.php:22
Bitrix\Main\ORM\Fields\IntegerField
Definition
integerfield.php:20
Bitrix\Main\ORM\Fields\StringField
Definition
stringfield.php:20
Bitrix\Sale\Internals\EntityMarkerTable
Definition
entitymarker.php:28
Bitrix\Sale\Internals\EntityMarkerTable\getMap
static getMap()
Definition
entitymarker.php:44
Bitrix\Sale\Internals\EntityMarkerTable\validateSuccess
static validateSuccess()
Definition
entitymarker.php:158
Bitrix\Sale\Internals\EntityMarkerTable\validateComment
static validateComment()
Definition
entitymarker.php:146
Bitrix\Sale\Internals\EntityMarkerTable\validateMessage
static validateMessage()
Definition
entitymarker.php:134
Bitrix\Sale\Internals\EntityMarkerTable\getTableName
static getTableName()
Definition
entitymarker.php:34
Bitrix\Sale\Internals\EntityMarkerTable\validateCode
static validateCode()
Definition
entitymarker.php:122
Bitrix\Main
Bitrix\Sale\Internals
Definition
accountnumber.php:3
modules
sale
lib
internals
entitymarker.php
Создано системой
1.10.0