Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
lockstatusprovider.php
1<?php
2
4
7
9{
10 public function prepareColumns(): array
11 {
12 if ($this->isSkuSelectorEnabled())
13 {
14 return [];
15 }
16 if (!$this->usedWorkflow() && !$this->usedBusinessProcesses())
17 {
18 return [];
19 }
20
21 return $this->createColumns([
22 'LOCK_STATUS' => [
23 'type' => Grid\Column\Type::CUSTOM,
24 'name' => Loc::getMessage('IBLOCK_LOCK_STATUS_ELEMENT_COLUMN_PROVIDER_FIELD_LOCK_STATUS'),
25 'necessary' => true,
26 'editable' => false,
27 'multiple' => false,
28 'align' => 'center',
29 ],
30 ]);
31 }
32
33 protected function usedWorkflow(): bool
34 {
35 return $this->getSettings()->isUseWorkflow();
36 }
37
38 protected function usedBusinessProcesses(): bool
39 {
40 return $this->getSettings()->isUseBusinessProcesses();
41 }
42}
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29