Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
basketproperties.php
1
<?php
2
namespace
Bitrix\Sale\Internals
;
3
4
use
Bitrix\Main
;
5
use
Bitrix\Main\Localization\Loc
;
6
Loc::loadMessages
(__FILE__);
7
37
class
BasketPropertyTable
38
extends
Main\Entity\DataManager
39
{
45
public
static
function
getTableName
()
46
{
47
return
'b_sale_basket_props'
;
48
}
49
55
public
static
function
getMap
()
56
{
57
return
array(
58
new
Main\
Entity
\
IntegerField
(
59
'ID'
,
60
array(
61
'autocomplete'
=>
true
,
62
'primary'
=>
true
,
63
)
64
),
65
new
Main\
Entity
\
IntegerField
(
66
'BASKET_ID'
,
67
array(
68
'required'
=>
true
,
69
)
70
),
71
new
Main\
Entity
\
StringField
(
72
'NAME'
,
73
array(
74
'size'
=> 255,
75
'validation'
=> array(__CLASS__,
'validateName'
),
76
)
77
),
78
new
Main\
Entity
\
StringField
(
79
'VALUE'
,
80
array(
81
'size'
=> 255,
82
'validation'
=> array(__CLASS__,
'validateValue'
),
83
)
84
),
85
new
Main\
Entity
\
StringField
(
86
'CODE'
,
87
array(
88
'size'
=> 255,
89
'validation'
=> array(__CLASS__,
'validateCode'
),
90
)
91
),
92
93
new
Main\
Entity
\
IntegerField
(
94
'SORT'
95
),
96
new
Main\
Entity
\ReferenceField(
97
'BASKET'
,
98
'Bitrix\Sale\Internals\Basket'
,
99
array(
100
'=this.BASKET_ID'
=>
'ref.ID'
101
)
102
),
103
104
new
Main\
Entity
\
StringField
(
105
'XML_ID'
,
106
array(
107
'size'
=> 255,
108
)
109
),
110
);
111
}
117
public
static
function
validateName
()
118
{
119
return
array(
120
new
Main\
Entity
\Validator\Length(
null
, 255),
121
);
122
}
128
public
static
function
validateValue
()
129
{
130
return
array(
131
new
Main\
Entity
\Validator\Length(
null
, 255),
132
);
133
}
139
public
static
function
validateCode
()
140
{
141
return
array(
142
new
Main\
Entity
\Validator\Length(
null
, 255),
143
);
144
}
145
}
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\IntegerField
Definition
integerfield.php:20
Bitrix\Main\ORM\Fields\StringField
Definition
stringfield.php:20
Bitrix\Sale\Internals\BasketPropertyTable
Definition
basketproperties.php:39
Bitrix\Sale\Internals\BasketPropertyTable\getMap
static getMap()
Definition
basketproperties.php:55
Bitrix\Sale\Internals\BasketPropertyTable\validateValue
static validateValue()
Definition
basketproperties.php:128
Bitrix\Sale\Internals\BasketPropertyTable\validateName
static validateName()
Definition
basketproperties.php:117
Bitrix\Sale\Internals\BasketPropertyTable\getTableName
static getTableName()
Definition
basketproperties.php:45
Bitrix\Sale\Internals\BasketPropertyTable\validateCode
static validateCode()
Definition
basketproperties.php:139
Bitrix\Main
Bitrix\Sale\Internals
Definition
accountnumber.php:3
modules
sale
lib
internals
basketproperties.php
Создано системой
1.10.0