Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
catalogiblock.php
1<?php
2namespace Bitrix\Catalog;
3
6
7Loc::loadMessages(__FILE__);
8
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}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29