Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
shipmentitemstore.php
1
<?php
2
namespace
Bitrix\Sale\Internals
;
3
4
use
Bitrix\Main
;
5
use
Bitrix\Main\Localization\Loc
;
6
Loc::loadMessages
(__FILE__);
7
40
class
ShipmentItemStoreTable
extends
Main\Entity\DataManager
41
{
47
public
static
function
getTableName
()
48
{
49
return
'b_sale_store_barcode'
;
50
}
51
57
public
static
function
getMap
()
58
{
59
return
array(
60
'ID'
=> array(
61
'data_type'
=>
'integer'
,
62
'primary'
=>
true
,
63
'autocomplete'
=>
true
,
64
'title'
=>
Loc::getMessage
(
'STORE_BARCODE_ENTITY_ID_FIELD'
),
65
),
66
'ORDER_DELIVERY_BASKET_ID'
=> array(
67
'data_type'
=>
'integer'
,
68
'required'
=>
true
,
69
'title'
=>
Loc::getMessage
(
'STORE_BARCODE_ENTITY_ORDER_DELIVERY_BASKET_ID_FIELD'
),
70
),
71
'ORDER_DELIVERY_BASKET'
=> array(
72
'data_type'
=>
'Bitrix\Sale\Internals\ShipmentItem'
,
73
'reference'
=> array(
74
'=this.ORDER_DELIVERY_BASKET_ID'
=>
'ref.ID'
75
)
76
),
77
'BASKET_ID'
=> array(
78
'data_type'
=>
'integer'
,
79
'required'
=>
true
,
80
'title'
=>
Loc::getMessage
(
'STORE_BARCODE_ENTITY_BASKET_ID_FIELD'
),
81
),
82
'BARCODE'
=> array(
83
'data_type'
=>
'string'
,
84
'validation'
=> array(__CLASS__,
'validateBarcode'
),
85
'title'
=>
Loc::getMessage
(
'STORE_BARCODE_ENTITY_BARCODE_FIELD'
),
86
),
87
'MARKING_CODE'
=> array(
88
'data_type'
=>
'string'
,
89
'title'
=>
Loc::getMessage
(
'STORE_BARCODE_ENTITY_MARKING_CODE_FIELD'
),
90
),
91
'STORE_ID'
=> array(
92
'data_type'
=>
'integer'
,
93
'title'
=>
Loc::getMessage
(
'STORE_BARCODE_ENTITY_STORE_ID_FIELD'
),
94
),
95
'QUANTITY'
=> array(
96
'data_type'
=>
'float'
,
97
'required'
=>
true
,
98
'title'
=>
Loc::getMessage
(
'STORE_BARCODE_ENTITY_QUANTITY_FIELD'
),
99
),
100
'DATE_CREATE'
=> array(
101
'data_type'
=>
'datetime'
,
102
'title'
=>
Loc::getMessage
(
'STORE_BARCODE_ENTITY_DATE_CREATE_FIELD'
),
103
),
104
'DATE_MODIFY'
=> array(
105
'data_type'
=>
'datetime'
,
106
'title'
=>
Loc::getMessage
(
'STORE_BARCODE_ENTITY_DATE_MODIFY_FIELD'
),
107
),
108
'CREATED_BY'
=> array(
109
'data_type'
=>
'integer'
,
110
'title'
=>
Loc::getMessage
(
'STORE_BARCODE_ENTITY_CREATED_BY_FIELD'
),
111
),
112
'MODIFIED_BY'
=> array(
113
'data_type'
=>
'integer'
,
114
'title'
=>
Loc::getMessage
(
'STORE_BARCODE_ENTITY_MODIFIED_BY_FIELD'
),
115
),
116
);
117
}
123
public
static
function
validateBarcode
()
124
{
125
return
array(
126
new
Main\
Entity
\Validator\Length(
null
, 100),
127
);
128
}
129
}
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\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Sale\Internals\ShipmentItemStoreTable
Definition
shipmentitemstore.php:41
Bitrix\Sale\Internals\ShipmentItemStoreTable\getMap
static getMap()
Definition
shipmentitemstore.php:57
Bitrix\Sale\Internals\ShipmentItemStoreTable\validateBarcode
static validateBarcode()
Definition
shipmentitemstore.php:123
Bitrix\Sale\Internals\ShipmentItemStoreTable\getTableName
static getTableName()
Definition
shipmentitemstore.php:47
Bitrix\Main
Bitrix\Sale\Internals
Definition
accountnumber.php:3
modules
sale
lib
internals
shipmentitemstore.php
Создано системой
1.10.0