Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
catalogiblock.php
1
<?php
2
namespace
Bitrix\Catalog
;
3
4
use
Bitrix\Main\ORM
,
5
Bitrix\Main\Localization\Loc
;
6
7
Loc::loadMessages
(__FILE__);
8
40
class
CatalogIblockTable
extends
ORM\Data\DataManager
41
{
47
public
static
function
getTableName
()
48
{
49
return
'b_catalog_iblock'
;
50
}
51
57
public
static
function
getMap
()
58
{
59
return
array(
60
'IBLOCK_ID'
=>
new
ORM\
Fields
\
IntegerField
(
'IBLOCK_ID'
, array(
61
'primary'
=>
true
,
62
'title'
=>
Loc::getMessage
(
'IBLOCK_ENTITY_IBLOCK_ID_FIELD'
)
63
)),
64
'YANDEX_EXPORT'
=>
new
ORM\
Fields
\
BooleanField
(
'YANDEX_EXPORT'
, array(
65
'values'
=> array(
'N'
,
'Y'
),
66
'default_value'
=>
'N'
,
67
'title'
=>
Loc::getMessage
(
'IBLOCK_ENTITY_YANDEX_EXPORT_FIELD'
)
68
)),
69
'SUBSCRIPTION'
=>
new
ORM\
Fields
\
BooleanField
(
'SUBSCRIPTION'
, array(
70
'values'
=> array(
'N'
,
'Y'
),
71
'default_value'
=>
'N'
,
72
'title'
=>
Loc::getMessage
(
'IBLOCK_ENTITY_SUBSCRIPTION_FIELD'
)
73
)),
74
'VAT_ID'
=>
new
ORM\
Fields
\
IntegerField
(
'VAT_ID'
, array(
75
'default_value'
=> 0,
76
'title'
=>
Loc::getMessage
(
'IBLOCK_ENTITY_VAT_ID_FIELD'
)
77
)),
78
'PRODUCT_IBLOCK_ID'
=>
new
ORM\
Fields
\
IntegerField
(
'PRODUCT_IBLOCK_ID'
, array(
79
'default_value'
=> 0,
80
'title'
=>
Loc::getMessage
(
'IBLOCK_ENTITY_PRODUCT_IBLOCK_ID_FIELD'
),
81
)),
82
'SKU_PROPERTY_ID'
=>
new
ORM\
Fields
\
IntegerField
(
'SKU_PROPERTY_ID'
, array(
83
'default_value'
=> 0,
84
'title'
=>
Loc::getMessage
(
'IBLOCK_ENTITY_SKU_PROPERTY_ID_FIELD'
)
85
)),
86
'IBLOCK'
=>
new
ORM\
Fields
\Relations\
Reference
(
87
'IBLOCK'
,
88
'\Bitrix\Iblock\Iblock'
,
89
array(
'=this.IBLOCK_ID'
=>
'ref.ID'
),
90
array(
'join_type'
=>
'INNER'
)
91
),
92
'PRODUCT_IBLOCK'
=>
new
ORM\
Fields
\Relations\
Reference
(
93
'PRODUCT_IBLOCK'
,
94
'\Bitrix\Iblock\Iblock'
,
95
array(
'=this.PRODUCT_IBLOCK_ID'
=>
'ref.ID'
),
96
array(
'join_type'
=>
'LEFT'
)
97
)
98
);
99
}
100
}
Bitrix\Catalog\CatalogIblockTable
Definition
catalogiblock.php:41
Bitrix\Catalog\CatalogIblockTable\getMap
static getMap()
Definition
catalogiblock.php:57
Bitrix\Catalog\CatalogIblockTable\getTableName
static getTableName()
Definition
catalogiblock.php:47
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\Main\ORM\Data\DataManager
Definition
datamanager.php:33
Bitrix\Main\ORM\Fields\BooleanField
Definition
booleanfield.php:20
Bitrix\Main\ORM\Fields\IntegerField
Definition
integerfield.php:20
Bitrix\Main\ORM\Fields\Relations\Reference
Definition
reference.php:26
Bitrix\Sale\Internals\Fields
Definition
fields.php:6
Bitrix\Catalog
Bitrix\Main\ORM
modules
catalog
lib
catalogiblock.php
Создано системой
1.10.0