Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
catalog.php
1<?php
2
3
5
6
10
11final 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}
internalizeArguments($name, $arguments)
Definition catalog.php:72