Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
workflowprovider.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
* STATUS - WF_STATUS_ID (order not worked)
10
*/
11
class
WorkflowProvider
extends
LockStatusProvider
12
{
13
public
function
prepareColumns
(): array
14
{
15
$result = parent::prepareColumns();
16
17
if
(!$this->
isSkuSelectorEnabled
() && $this->
usedWorkflow
())
18
{
19
$result[
'WF_STATUS_ID'
] = $this->
createColumn
(
'WF_STATUS_ID'
, [
20
'type'
=>
Grid
\
Column
\Type::CUSTOM,
21
'name'
=>
Loc::getMessage
(
'IBLOCK_WORKFLOW_COLUMN_PROVIDER_FIELD_WF_STATUS_ID'
),
22
'necessary'
=>
true
,
23
'sort'
=>
'WF_STATUS_ID'
,
24
]);
25
}
26
27
return
$result;
28
}
29
}
Bitrix\Iblock\Grid\Column\BaseElementProvider\isSkuSelectorEnabled
isSkuSelectorEnabled()
Definition
baseelementprovider.php:23
Bitrix\Iblock\Grid\Column\LockStatusProvider
Definition
lockstatusprovider.php:9
Bitrix\Iblock\Grid\Column\LockStatusProvider\usedWorkflow
usedWorkflow()
Definition
lockstatusprovider.php:33
Bitrix\Iblock\Grid\Column\WorkflowProvider
Definition
workflowprovider.php:12
Bitrix\Iblock\Grid\Column\WorkflowProvider\prepareColumns
prepareColumns()
Definition
workflowprovider.php:13
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
workflowprovider.php
Создано системой
1.10.0