Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
pricetypelang.php
1
<?php
2
3
namespace
Bitrix\Catalog\RestView
;
4
5
use
Bitrix\Rest\Integration\View\Attributes
;
6
use
Bitrix\Rest\Integration\View\DataType
;
7
use
Bitrix\Rest\Integration\View\Base
;
8
9
final
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
}
Bitrix\Catalog\Controller\PriceTypeLang
Definition
pricetypelang.php:13
Bitrix\Catalog\Product\Store\DistributionStrategy\Base
Definition
base.php:21
Bitrix\Catalog\RestView\PriceTypeLang\internalizeArguments
internalizeArguments($name, $arguments)
Definition
pricetypelang.php:44
Bitrix\Catalog\RestView\PriceTypeLang\externalizeResult
externalizeResult($name, $fields)
Definition
pricetypelang.php:57
Bitrix\Catalog\RestView\PriceTypeLang\getFields
getFields()
Definition
pricetypelang.php:11
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
pricetypelang.php
Создано системой
1.10.0