Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
measureratioprovider.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
MeasureRatioProvider
extends
CatalogProvider
9
{
10
public
function
prepareColumns
(): array
11
{
12
$result = [];
13
14
$result[
'RATIO'
] = $this->
createColumn
(
'RATIO'
, [
15
'type'
=>
Grid
\
Column
\Type::FLOAT,
16
'name'
=>
Loc::getMessage
(
'MEASURE_RATIO_COLUMN_PROVIDER_FIELD_RATIO'
),
17
'title'
=>
Loc::getMessage
(
'MEASURE_RATIO_COLUMN_PROVIDER_FIELD_TITLE_RATIO'
),
18
'necessary'
=>
false
,
19
'editable'
=> $this->
allowProductEdit
(),
20
'multiple'
=>
false
,
21
'select'
=> [
22
'RATIO'
,
23
'PRODUCT_ID'
,
24
],
25
'sort'
=>
false
,
26
'align'
=>
'right'
,
27
]);
28
29
return
$result;
30
}
31
}
Bitrix\Catalog\Grid\Column\CatalogProvider
Definition
catalogprovider.php:12
Bitrix\Catalog\Grid\Column\CatalogProvider\allowProductEdit
allowProductEdit()
Definition
catalogprovider.php:22
Bitrix\Catalog\Grid\Column\MeasureRatioProvider
Definition
measureratioprovider.php:9
Bitrix\Catalog\Grid\Column\MeasureRatioProvider\prepareColumns
prepareColumns()
Definition
measureratioprovider.php:10
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
measureratioprovider.php
Создано системой
1.10.0