Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
elementpropertytable.php
1
<?php
9
namespace
Bitrix\Iblock
;
10
11
use
Bitrix\Main\ORM\Data\DataManager
;
12
use
Bitrix\Main\ORM\Fields\FloatField
;
13
use
Bitrix\Main\ORM\Fields\IntegerField
;
14
use
Bitrix\Main\ORM\Fields\Relations\Reference
;
15
use
Bitrix\Main\ORM\Fields\StringField
;
16
use
Bitrix\Main\ORM\Fields\TextField
;
17
use
Bitrix\Main\ORM\Query\Join
;
18
36
class
ElementPropertyTable
extends
DataManager
37
{
38
public
static
function
getMap
()
39
{
40
return
[
41
(
new
IntegerField
(
'ID'
))
42
->configurePrimary(
true
)
43
->configureAutocomplete(
true
),
44
45
new
IntegerField
(
'IBLOCK_PROPERTY_ID'
),
46
47
new
IntegerField
(
'IBLOCK_ELEMENT_ID'
),
48
49
new
Reference
(
50
'ELEMENT'
, ElementTable::class,
51
Join::on(
'this.IBLOCK_ELEMENT_ID'
,
'ref.ID'
)
52
),
53
54
new
TextField
(
'VALUE'
),
55
56
new
StringField
(
'VALUE_TYPE'
),
57
58
new
IntegerField
(
'VALUE_ENUM'
),
59
60
new
FloatField
(
'VALUE_NUM'
),
61
62
new
StringField
(
'DESCRIPTION'
),
63
64
new
Reference
(
65
'ENUM'
,
66
PropertyEnumerationTable::class,
67
Join::on(
'this.VALUE_ENUM'
,
'ref.ID'
)
68
),
69
];
70
}
71
}
Bitrix\Iblock\ElementPropertyTable
Definition
elementpropertytable.php:37
Bitrix\Iblock\ElementPropertyTable\getMap
static getMap()
Definition
elementpropertytable.php:38
Bitrix\Main\ORM\Data\DataManager
Definition
datamanager.php:33
Bitrix\Main\ORM\Fields\FloatField
Definition
floatfield.php:20
Bitrix\Main\ORM\Fields\IntegerField
Definition
integerfield.php:20
Bitrix\Main\ORM\Fields\Relations\Reference
Definition
reference.php:26
Bitrix\Main\ORM\Fields\StringField
Definition
stringfield.php:20
Bitrix\Main\ORM\Fields\TextField
Definition
textfield.php:20
Bitrix\Main\ORM\Query\Join
Definition
join.php:19
Bitrix\Iblock
modules
iblock
lib
elementpropertytable.php
Создано системой
1.10.0