Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
basketreservationhistorytable.php
1
<?php
2
3
namespace
Bitrix\Sale\Reservation\Internals
;
4
5
use
Bitrix\Main\ORM\Data\DataManager
;
6
use
Bitrix\Main\ORM\Fields\DatetimeField
;
7
use
Bitrix\Main\ORM\Fields\FloatField
;
8
use
Bitrix\Main\ORM\Fields\IntegerField
;
9
use
Bitrix\Main\ORM\Fields\Relations\Reference
;
10
use
Bitrix\Main\ORM\Query\Join
;
11
use
Bitrix\Main\Type\DateTime
;
12
29
class
BasketReservationHistoryTable
extends
DataManager
30
{
31
public
static
function
getTableName
()
32
{
33
return
'b_sale_basket_reservation_history'
;
34
}
35
36
public
static
function
getMap
()
37
{
38
return
[
39
(
new
IntegerField
(
'ID'
))
40
->configurePrimary()
41
->configureAutocomplete()
42
,
43
(
new
IntegerField
(
'RESERVATION_ID'
))
44
->configureRequired()
45
,
46
(
new
DatetimeField
(
'DATE_RESERVE'
))
47
->configureDefaultValue(
new
DateTime
())
48
->configureRequired()
49
,
50
(
new
FloatField
(
'QUANTITY'
))
51
->configureRequired()
52
,
53
// refs
54
new
Reference
(
'RESERVATION'
, BasketReservationTable::class, Join::on(
'this.RESERVATION_ID'
,
'ref.ID'
)),
55
];
56
}
57
}
Bitrix\Main\ORM\Data\DataManager
Definition
datamanager.php:33
Bitrix\Main\ORM\Fields\DatetimeField
Definition
datetimefield.php:22
Bitrix\Main\ORM\Fields\FloatField
Definition
floatfield.php:20
Bitrix\Main\ORM\Fields\IntegerField
Definition
integerfield.php:20
Bitrix\Main\ORM\Fields\Relations\Reference
Definition
reference.php:26
Bitrix\Main\ORM\Query\Join
Definition
join.php:19
Bitrix\Main\Type\DateTime
Definition
datetime.php:9
Bitrix\Sale\Reservation\Internals\BasketReservationHistoryTable
Definition
basketreservationhistorytable.php:30
Bitrix\Sale\Reservation\Internals\BasketReservationHistoryTable\getMap
static getMap()
Definition
basketreservationhistorytable.php:36
Bitrix\Sale\Reservation\Internals\BasketReservationHistoryTable\getTableName
static getTableName()
Definition
basketreservationhistorytable.php:31
Bitrix\Sale\Reservation\Internals
Definition
basketreservationhistorytable.php:3
modules
sale
lib
reservation
internals
basketreservationhistorytable.php
Создано системой
1.10.0