1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
lockstatusprovider.php
См. документацию.
1<?php
2
3namespace Bitrix\Iblock\Grid\Column;
4
5use Bitrix\Main\Grid;
6use Bitrix\Main\Localization\Loc;
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}
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
Определения color.php:3