Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
catalog.php
1
<?php
2
3
4
namespace
Bitrix\Catalog\RestView
;
5
6
7
use
Bitrix\Rest\Integration\View\Attributes
;
8
use
Bitrix\Rest\Integration\View\DataType
;
9
use
Bitrix\Rest\Integration\View\Base
;
10
11
final
class
Catalog
extends
Base
12
{
13
public
function
getFields
()
14
{
15
return
[
16
'ID'
=>[
17
'TYPE'
=>DataType::TYPE_INT,
18
'ATTRIBUTES'
=>[
19
Attributes::READONLY
20
]
21
],
22
'IBLOCK_ID'
=>[
23
'TYPE'
=>DataType::TYPE_INT,
24
'ATTRIBUTES'
=>[
25
Attributes::REQUIRED,
26
Attributes::IMMUTABLE
27
]
28
],
29
'YANDEX_EXPORT'
=>[
30
'TYPE'
=>DataType::TYPE_CHAR
31
],
32
'SUBSCRIPTION'
=>[
33
'TYPE'
=>DataType::TYPE_CHAR
34
],
35
'VAT_ID'
=>[
36
'TYPE'
=>DataType::TYPE_INT
37
],
38
'PRODUCT_IBLOCK_ID'
=>[
39
'TYPE'
=>DataType::TYPE_INT
40
],
41
'SKU_PROPERTY_ID'
=>[
42
'TYPE'
=>DataType::TYPE_INT
43
],
44
'IBLOCK_TYPE_ID'
=>[
45
'TYPE'
=>DataType::TYPE_INT,
46
'ATTRIBUTES'
=>[
47
Attributes::READONLY
48
]
49
],
50
'LID'
=>[
51
'TYPE'
=>DataType::TYPE_STRING,
52
'ATTRIBUTES'
=>[
53
Attributes::READONLY
54
]
55
],
56
'NAME'
=>[
57
'TYPE'
=>DataType::TYPE_STRING,
58
'ATTRIBUTES'
=>[
59
Attributes::READONLY
60
]
61
],
62
'OFFERS'
=>[
63
'TYPE'
=>DataType::TYPE_CHAR,
64
'ATTRIBUTES'
=>[
65
Attributes::READONLY,
66
Attributes::HIDDEN
67
]
68
]
69
];
70
}
71
72
public
function
internalizeArguments
($name, $arguments): array
73
{
74
if
($name !==
'isoffers'
)
75
{
76
parent::internalizeArguments($name, $arguments);
77
}
78
79
return
$arguments;
80
}
81
}
Bitrix\Catalog\Controller\Catalog
Definition
catalog.php:13
Bitrix\Catalog\Product\Store\DistributionStrategy\Base
Definition
base.php:21
Bitrix\Catalog\RestView\Catalog\internalizeArguments
internalizeArguments($name, $arguments)
Definition
catalog.php:72
Bitrix\Catalog\RestView\Catalog\getFields
getFields()
Definition
catalog.php:13
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
catalog.php
Создано системой
1.10.0