Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
sectionelementtable.php
1
<?php
2
namespace
Bitrix\Iblock
;
3
4
use
Bitrix\Iblock\ORM\CommonElementTable
;
5
use
Bitrix\Main
,
6
Bitrix\Main\Localization\Loc
;
7
use
Bitrix\Main\ORM\Fields\Relations\Reference
;
8
use
Bitrix\Main\ORM\Query\Join
;
9
10
Loc::loadMessages
(__FILE__);
11
28
class
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
}
Bitrix\Iblock\ORM\CommonElementTable
Definition
commonelementtable.php:29
Bitrix\Iblock\SectionElementTable
Definition
sectionelementtable.php:29
Bitrix\Iblock\SectionElementTable\getMap
static getMap()
Definition
sectionelementtable.php:45
Bitrix\Iblock\SectionElementTable\getTableName
static getTableName()
Definition
sectionelementtable.php:35
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\Entity
Definition
entity.php:26
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\Iblock
Bitrix\Main
modules
iblock
lib
sectionelementtable.php
Создано системой
1.10.0