Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
sectionelementtable.php
1<?php
2namespace Bitrix\Iblock;
3
9
10Loc::loadMessages(__FILE__);
11
28class SectionElementTable extends Main\Entity\DataManager
29{
35 public static function getTableName()
36 {
37 return 'b_iblock_section_element';
38 }
39
45 public static function getMap()
46 {
47 return array(
48 'IBLOCK_SECTION_ID' => new Main\Entity\IntegerField('IBLOCK_SECTION_ID', array(
49 'primary' => true,
50 'title' => Loc::getMessage('IBLOCK_SECTION_ELEMENT_ENTITY_IBLOCK_SECTION_ID_FIELD'),
51 )),
52 'IBLOCK_ELEMENT_ID' => new Main\Entity\IntegerField('IBLOCK_ELEMENT_ID', array(
53 'primary' => true,
54 'title' => Loc::getMessage('IBLOCK_SECTION_ELEMENT_ENTITY_IBLOCK_ELEMENT_ID_FIELD'),
55 )),
56 'ADDITIONAL_PROPERTY_ID' => new Main\Entity\IntegerField('ADDITIONAL_PROPERTY_ID', array(
57 'title' => Loc::getMessage('IBLOCK_SECTION_ELEMENT_ENTITY_ADDITIONAL_PROPERTY_ID_FIELD'),
58 )),
59 'IBLOCK_SECTION' => new Main\Entity\ReferenceField(
60 'IBLOCK_SECTION',
61 'Bitrix\Iblock\Section',
62 Join::on('this.IBLOCK_SECTION_ID', 'ref.ID')
63 ),
64 'IBLOCK_ELEMENT' => new Main\Entity\ReferenceField(
65 'IBLOCK_ELEMENT',
66 'Bitrix\Iblock\Element',
67 array('=this.IBLOCK_ELEMENT_ID' => 'ref.ID'),
68 array(
69 'title' => Loc::getMessage('IBLOCK_SECTION_ELEMENT_ENTITY_IBLOCK_ELEMENT_FIELD'),
70 )
71 ),
72
73 new Reference(
74 'REGULAR_ELEMENT',
75 CommonElementTable::class,
76 Join::on('this.IBLOCK_ELEMENT_ID', 'ref.ID')
77 ->whereNull('this.ADDITIONAL_PROPERTY_ID')
78 )
79 );
80 }
81}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29