Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
pricetypelang.php
1<?php
2
4
8
9final class PriceTypeLang extends Base
10{
11 public function getFields()
12 {
13 return [
14 'ID' => [
15 'TYPE' => DataType::TYPE_INT,
16 'ATTRIBUTES' => [
17 Attributes::IMMUTABLE,
18 ],
19 ],
20 'CATALOG_GROUP_ID' => [
21 'TYPE' => DataType::TYPE_INT,
22 'ATTRIBUTES' => [
23 Attributes::REQUIRED,
24 ],
25 ],
26 'LANG' => [
27 'TYPE' => DataType::TYPE_STRING,
28 'ATTRIBUTES' => [
29 Attributes::REQUIRED,
30 ],
31 ],
32 'NAME'=>[
33 'TYPE' => DataType::TYPE_STRING,
34 'ATTRIBUTES' => [
35 Attributes::REQUIRED,
36 ],
37 ]
38 ];
39 }
40
44 public function internalizeArguments($name, $arguments): array
45 {
46 if ($name !== 'getlanguages')
47 {
48 parent::internalizeArguments($name, $arguments);
49 }
50
51 return $arguments;
52 }
53
57 public function externalizeResult($name, $fields): array
58 {
59 if ($name !== 'getlanguages')
60 {
61 parent::externalizeResult($name, $fields);
62 }
63
64 return $fields;
65 }
66}