Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
documentelement.php
1<?php
2
4
8
9final class DocumentElement extends Base
10{
16 public function getFields()
17 {
18 return [
19 'ID'=>[
20 'TYPE'=>DataType::TYPE_INT,
21 'ATTRIBUTES'=>[
22 Attributes::READONLY,
23 ]
24 ],
25 'DOC_ID'=>[
26 'TYPE'=>DataType::TYPE_INT,
27 'ATTRIBUTES'=>[
28 Attributes::IMMUTABLE,
29 ]
30 ],
31 'STORE_FROM'=>[
32 'TYPE'=>DataType::TYPE_INT,
33 ],
34 'STORE_TO'=>[
35 'TYPE'=>DataType::TYPE_INT,
36 ],
37 'ELEMENT_ID'=>[
38 'TYPE'=>DataType::TYPE_INT,
39 'ATTRIBUTES'=>[
40 Attributes::IMMUTABLE,
41 ]
42 ],
43 'AMOUNT'=>[
44 'TYPE'=>DataType::TYPE_FLOAT,
45 ],
46 'PURCHASING_PRICE'=>[
47 'TYPE'=>DataType::TYPE_FLOAT,
48 ],
49 ];
50 }
51
55 public function internalizeArguments($name, $arguments): array
56 {
57 if ($name === 'fields')
58 {
59 return $arguments;
60 }
61
62 return parent::internalizeArguments($name, $arguments);
63 }
64
65
69 public function externalizeResult($name, $fields): array
70 {
71 if ($name === 'fields')
72 {
73 return $fields;
74 }
75
76 return parent::externalizeResult($name, $fields);
77 }
78}