Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
basketreservationtable.php
1
<?php
2
3
namespace
Bitrix\Sale\Reservation\Internals
;
4
5
use
Bitrix\Main\ORM\Data\DataManager
;
6
use
Bitrix\Main\ORM\Fields\Relations\Reference
;
7
use
Bitrix\Main\ORM\Query\Join
;
8
use
Bitrix\Sale\Internals\BasketTable
;
9
26
class
BasketReservationTable
extends
DataManager
27
{
28
public
static
function
getTableName
()
29
{
30
return
'b_sale_basket_reservation'
;
31
}
32
33
public
static
function
getMap
()
34
{
35
return
[
36
'ID'
=> [
37
'data_type'
=>
'integer'
,
38
'primary'
=>
true
,
39
'autocomplete'
=> true
40
],
41
'QUANTITY'
=> [
42
'data_type'
=>
'float'
,
43
'required'
=> true
44
],
45
'DATE_RESERVE'
=> [
46
'data_type'
=>
'datetime'
,
47
'required'
=> true
48
],
49
'DATE_RESERVE_END'
=> [
50
'data_type'
=>
'datetime'
,
51
'required'
=>
true
,
52
],
53
'RESERVED_BY'
=> [
54
'data_type'
=>
'integer'
,
55
],
56
'BASKET_ID'
=> [
57
'data_type'
=>
'integer'
,
58
'required'
=> true
59
],
60
'STORE_ID'
=> [
61
'data_type'
=>
'integer'
,
62
],
63
// refs
64
new
Reference
(
'BASKET'
, BasketTable::class, Join::on(
'this.BASKET_ID'
,
'ref.ID'
)),
65
];
66
}
67
}
Bitrix\Main\ORM\Data\DataManager
Definition
datamanager.php:33
Bitrix\Main\ORM\Fields\Relations\Reference
Definition
reference.php:26
Bitrix\Main\ORM\Query\Join
Definition
join.php:19
Bitrix\Sale\Internals\BasketTable
Definition
basket.php:35
Bitrix\Sale\Reservation\Internals\BasketReservationTable
Definition
basketreservationtable.php:27
Bitrix\Sale\Reservation\Internals\BasketReservationTable\getMap
static getMap()
Definition
basketreservationtable.php:33
Bitrix\Sale\Reservation\Internals\BasketReservationTable\getTableName
static getTableName()
Definition
basketreservationtable.php:28
Bitrix\Sale\Reservation\Internals
Definition
basketreservationhistorytable.php:3
modules
sale
lib
reservation
internals
basketreservationtable.php
Создано системой
1.10.0