Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
documentelement.php
1
<?php
2
3
namespace
Bitrix\Catalog\RestView
;
4
5
use
Bitrix\Rest\Integration\View\Attributes
;
6
use
Bitrix\Rest\Integration\View\DataType
;
7
use
Bitrix\Rest\Integration\View\Base
;
8
9
final
class
DocumentElement
extends
Base
10
{
16
public
function
getFields
()
17
{
18
return
[
19
'ID'
=>[
20
'TYPE'
=>DataType::TYPE_INT,
21
'ATTRIBUTES'
=>[
22
Attributes::READONLY,
23
]
24
],
25
'DOC_ID'
=>[
26
'TYPE'
=>DataType::TYPE_INT,
27
'ATTRIBUTES'
=>[
28
Attributes::IMMUTABLE,
29
]
30
],
31
'STORE_FROM'
=>[
32
'TYPE'
=>DataType::TYPE_INT,
33
],
34
'STORE_TO'
=>[
35
'TYPE'
=>DataType::TYPE_INT,
36
],
37
'ELEMENT_ID'
=>[
38
'TYPE'
=>DataType::TYPE_INT,
39
'ATTRIBUTES'
=>[
40
Attributes::IMMUTABLE,
41
]
42
],
43
'AMOUNT'
=>[
44
'TYPE'
=>DataType::TYPE_FLOAT,
45
],
46
'PURCHASING_PRICE'
=>[
47
'TYPE'
=>DataType::TYPE_FLOAT,
48
],
49
];
50
}
51
55
public
function
internalizeArguments
($name, $arguments): array
56
{
57
if
($name ===
'fields'
)
58
{
59
return
$arguments;
60
}
61
62
return
parent::internalizeArguments($name, $arguments);
63
}
64
65
69
public
function
externalizeResult
($name, $fields): array
70
{
71
if
($name ===
'fields'
)
72
{
73
return
$fields;
74
}
75
76
return
parent::externalizeResult($name, $fields);
77
}
78
}
Bitrix\Catalog\Product\Store\DistributionStrategy\Base
Definition
base.php:21
Bitrix\Catalog\RestView\DocumentElement
Definition
documentelement.php:10
Bitrix\Catalog\RestView\DocumentElement\internalizeArguments
internalizeArguments($name, $arguments)
Definition
documentelement.php:55
Bitrix\Catalog\RestView\DocumentElement\externalizeResult
externalizeResult($name, $fields)
Definition
documentelement.php:69
Bitrix\Catalog\RestView\DocumentElement\getFields
getFields()
Definition
documentelement.php:16
Bitrix\Rest\Integration\View\Attributes
Definition
attributes.php:8
Bitrix\Rest\Integration\View\Base
Definition
base.php:16
Bitrix\Rest\Integration\View\DataType
Definition
datatype.php:11
Bitrix\Catalog\RestView
Definition
catalog.php:4
modules
catalog
lib
restview
documentelement.php
Создано системой
1.10.0