Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/ilovecveti.ru/bitrix/modules/iblock/lib/grid/column/ |
Upload File : |
<?php namespace Bitrix\Iblock\Grid\Column; use Bitrix\Main\Grid; use Bitrix\Main\Localization\Loc; abstract class LockStatusProvider extends BaseElementProvider { public function prepareColumns(): array { if ($this->isSkuSelectorEnabled()) { return []; } if (!$this->usedWorkflow() && !$this->usedBusinessProcesses()) { return []; } return $this->createColumns([ 'LOCK_STATUS' => [ 'type' => Grid\Column\Type::CUSTOM, 'name' => Loc::getMessage('IBLOCK_LOCK_STATUS_ELEMENT_COLUMN_PROVIDER_FIELD_LOCK_STATUS'), 'necessary' => true, 'editable' => false, 'multiple' => false, 'align' => 'center', ], ]); } protected function usedWorkflow(): bool { return $this->getSettings()->isUseWorkflow(); } protected function usedBusinessProcesses(): bool { return $this->getSettings()->isUseBusinessProcesses(); } }