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