Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
productpropertyfeature.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
ProductPropertyFeature
extends
Base
10
{
14
public
function
getFields
()
15
{
16
return
[
17
'ID'
=> [
18
'TYPE'
=> DataType::TYPE_INT,
19
'ATTRIBUTES'
=> [
20
Attributes::READONLY,
21
],
22
],
23
'PROPERTY_ID'
=> [
24
'TYPE'
=> DataType::TYPE_INT,
25
'ATTRIBUTES'
=> [
26
Attributes::REQUIRED,
27
],
28
],
29
'MODULE_ID'
=> [
30
'TYPE'
=> DataType::TYPE_STRING,
31
'ATTRIBUTES'
=> [
32
Attributes::REQUIRED,
33
],
34
],
35
'FEATURE_ID'
=> [
36
'TYPE'
=> DataType::TYPE_STRING,
37
'ATTRIBUTES'
=> [
38
Attributes::REQUIRED,
39
],
40
],
41
'IS_ENABLED'
=> [
42
'TYPE'
=> DataType::TYPE_CHAR,
43
'ATTRIBUTES'
=> [
44
Attributes::REQUIRED,
45
],
46
],
47
];
48
}
49
53
public
function
internalizeArguments
($name, $arguments): array
54
{
55
if
($name !==
'getavailablefeaturesbyproperty'
)
56
{
57
parent::internalizeArguments($name, $arguments);
58
}
59
60
return
$arguments;
61
}
62
66
public
function
externalizeResult
($name, $fields): array
67
{
68
if
($name !==
'getavailablefeaturesbyproperty'
)
69
{
70
parent::externalizeResult($name, $fields);
71
}
72
73
return
$fields;
74
}
75
}
Bitrix\Catalog\Controller\ProductPropertyFeature
Definition
productpropertyfeature.php:14
Bitrix\Catalog\Product\Store\DistributionStrategy\Base
Definition
base.php:21
Bitrix\Catalog\RestView\ProductPropertyFeature\internalizeArguments
internalizeArguments($name, $arguments)
Definition
productpropertyfeature.php:53
Bitrix\Catalog\RestView\ProductPropertyFeature\externalizeResult
externalizeResult($name, $fields)
Definition
productpropertyfeature.php:66
Bitrix\Catalog\RestView\ProductPropertyFeature\getFields
getFields()
Definition
productpropertyfeature.php:14
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
productpropertyfeature.php
Создано системой
1.10.0