Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
barcodeprovider.php
1
<?php
2
3
namespace
Bitrix\Catalog\Grid\Column
;
4
5
use
Bitrix\Main\Grid
;
6
use
Bitrix\Main\Localization\Loc
;
7
8
class
BarcodeProvider
extends
CatalogProvider
9
{
10
public
function
prepareColumns
(): array
11
{
12
$result = [];
13
14
$result[
'BARCODE'
] = $this->
createColumn
(
'BARCODE'
, [
15
'type'
=>
Grid
\
Column
\Type::HTML,
16
'name'
=>
Loc::getMessage
(
'BARCODE_COLUMN_PROVIDER_FIELD_BARCODE'
),
17
'necessary'
=>
false
,
18
'editable'
=>
false
,
19
'multiple'
=>
false
,
20
'select'
=> [
21
'BARCODE'
,
22
'PRODUCT_ID'
,
23
],
24
'sort'
=>
false
,
25
'align'
=>
'right'
,
26
]);
27
28
return
$result;
29
}
30
}
Bitrix\Catalog\Grid\Column\BarcodeProvider
Definition
barcodeprovider.php:9
Bitrix\Catalog\Grid\Column\BarcodeProvider\prepareColumns
prepareColumns()
Definition
barcodeprovider.php:10
Bitrix\Catalog\Grid\Column\CatalogProvider
Definition
catalogprovider.php:12
Bitrix\Main\Grid\Column\Column
Definition
column.php:13
Bitrix\Main\Grid\Column\DataProvider\createColumn
createColumn(string $columnId, array $params=[])
Definition
dataprovider.php:44
Bitrix\Main\Grid\Grid
Definition
grid.php:74
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Catalog\Grid\Column
Definition
barcodeprovider.php:3
Bitrix\Main\Grid
modules
catalog
lib
grid
column
barcodeprovider.php
Создано системой
1.10.0