Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
businessprocessprovider.php
1
<?php
2
3
namespace
Bitrix\Iblock\Grid\Column
;
4
5
use
Bitrix\Main\Grid
;
6
use
Bitrix\Main\Localization\Loc
;
7
8
/*
9
* BP_PUBLISHED - STATUS - WF_STATUS_ID (order not worked)
10
*/
11
12
class
BusinessProcessProvider
extends
LockStatusProvider
13
{
14
public
function
prepareColumns
(): array
15
{
16
$result = parent::prepareColumns();
17
18
if
(!$this->
isSkuSelectorEnabled
() && $this->
usedBusinessProcesses
())
19
{
20
$result[
'BP_PUBLISHED'
] = $this->
createColumn
(
'BP_PUBLISHED'
, [
21
'type'
=>
Grid
\
Column
\Type::CUSTOM,
22
'name'
=>
Loc::getMessage
(
''
),
23
'necessary'
=>
true
,
24
'sort'
=>
'WF_STATUS_ID'
,
25
]);
26
}
27
28
return
$result;
29
}
30
}
Bitrix\Iblock\Grid\Column\BaseElementProvider\isSkuSelectorEnabled
isSkuSelectorEnabled()
Definition
baseelementprovider.php:23
Bitrix\Iblock\Grid\Column\BusinessProcessProvider
Definition
businessprocessprovider.php:13
Bitrix\Iblock\Grid\Column\BusinessProcessProvider\prepareColumns
prepareColumns()
Definition
businessprocessprovider.php:14
Bitrix\Iblock\Grid\Column\LockStatusProvider
Definition
lockstatusprovider.php:9
Bitrix\Iblock\Grid\Column\LockStatusProvider\usedBusinessProcesses
usedBusinessProcesses()
Definition
lockstatusprovider.php:38
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\Iblock\Grid\Column
Definition
baseelementprovider.php:3
Bitrix\Main\Grid
modules
iblock
lib
grid
column
businessprocessprovider.php
Создано системой
1.10.0