Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
storeproduct.php
1<?php
11namespace Bitrix\Sale\Internals;
12
13use Bitrix\Main;
15
16if (!Main\Loader::includeModule('catalog'))
17{
18 return;
19}
20
21Loc::loadMessages(__FILE__);
22
39class StoreProductTable extends Main\Entity\DataManager
40{
41 public static function getTableName()
42 {
43 return 'b_catalog_store_product';
44 }
45
46 public static function getMap()
47 {
48 global $DB;
49 $fieldsMap = array(
50 'ID' => array(
51 'data_type' => 'integer',
52 'primary' => true,
53 'autocomplete' => true
54 ),
55 'PRODUCT_ID' => array(
56 'data_type' => 'integer'
57 ),
58 'SALE_PRODUCT' => array(
59 'data_type' => 'Product',
60 'reference' => array('=this.PRODUCT_ID' => 'ref.ID')
61 ),
62 'AMOUNT' => array(
63 'data_type' => 'float'
64 ),
65 'STORE_ID' => array(
66 'data_type' => 'integer',
67 ),
68 'STORE' => array(
69 'data_type' => 'Bitrix\Catalog\Store',
70 'reference' => array('=this.STORE_ID' => 'ref.ID')
71 )
72 );
73
74 return $fieldsMap;
75 }
76}
static loadMessages($file)
Definition loc.php:64