Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
productpropertyfeature.php
1<?php
2
4
8
9final 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}