Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
sku.php
1
<?php
2
3
namespace
Bitrix\Catalog\Controller\Product
;
4
5
use
Bitrix\Catalog\ProductTable
;
6
7
final
class
Sku
extends
Base
8
{
9
protected
const
TYPE
=
ProductTable::TYPE_SKU
;
10
protected
const
LIST
=
'UNITS'
;
11
12
protected
function
getServiceListName
(): string
13
{
14
return
self::LIST
;
15
}
16
17
protected
function
getAllowedProductTypes
(): array
18
{
19
return
[
ProductTable::TYPE_SKU
,
ProductTable::TYPE_EMPTY_SKU
];
20
}
21
22
public
function
addAction
($fields): ?array
23
{
24
$fields[
'TYPE'
] =
ProductTable::TYPE_EMPTY_SKU
;
25
$result = parent::addAction($fields);
26
27
return
$this->
fillKeyResponse
($result);
28
}
29
}
Bitrix\Catalog\Controller\Product\Base
Definition
base.php:13
Bitrix\Catalog\Controller\Product\Base\fillKeyResponse
fillKeyResponse($result)
Definition
base.php:66
Bitrix\Catalog\Controller\Product\Sku
Definition
sku.php:8
Bitrix\Catalog\Controller\Product\Sku\getServiceListName
getServiceListName()
Definition
sku.php:12
Bitrix\Catalog\Controller\Product\Sku\TYPE
const TYPE
Definition
sku.php:9
Bitrix\Catalog\Controller\Product\Sku\LIST
const LIST
Definition
sku.php:10
Bitrix\Catalog\Controller\Product\Sku\getAllowedProductTypes
getAllowedProductTypes()
Definition
sku.php:17
Bitrix\Catalog\Controller\Product\Sku\addAction
addAction($fields)
Definition
sku.php:22
Bitrix\Catalog\ProductTable
Definition
product.php:63
Bitrix\Catalog\ProductTable\TYPE_EMPTY_SKU
const TYPE_EMPTY_SKU
Definition
product.php:75
Bitrix\Catalog\ProductTable\TYPE_SKU
const TYPE_SKU
Definition
product.php:72
Bitrix\Catalog\Controller\Product
Definition
base.php:3
modules
catalog
lib
controller
product
sku.php
Создано системой
1.10.0