Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
productcolumns.php
1
<?php
2
3
namespace
Bitrix\Catalog\Grid\Column
;
4
5
use
Bitrix\Main\Grid\Column\Columns
;
6
7
class
ProductColumns
extends
Columns
8
{
12
public
function
prepareEditableColumnsValues
(array $values): array
13
{
14
$result = parent::prepareEditableColumnsValues($values);
15
$result = $this->appendProductFieldValue($result, $values);
16
17
return
$result;
18
}
19
30
private
function
appendProductFieldValue(array $result, array $values): array
31
{
32
if
(isset($values[
'NAME'
]) && !isset($result[
'NAME'
]))
33
{
34
$result[
'NAME'
] = $values[
'NAME'
];
35
}
36
37
return
$result;
38
}
39
}
Bitrix\Catalog\Grid\Column\ProductColumns
Definition
productcolumns.php:8
Bitrix\Catalog\Grid\Column\ProductColumns\prepareEditableColumnsValues
prepareEditableColumnsValues(array $values)
Definition
productcolumns.php:12
Bitrix\Main\Grid\Column\Columns
Definition
columns.php:14
Bitrix\Catalog\Grid\Column
Definition
barcodeprovider.php:3
modules
catalog
lib
grid
column
productcolumns.php
Создано системой
1.10.0