1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
copyelementitem.php
См. документацию.
1<?php
2
3namespace Bitrix\Iblock\Grid\Row\Actions\Item;
4
5use Bitrix\Iblock\Grid\Row\Actions\Item\Helpers\WithUrl;
6use Bitrix\Main\Grid\Row\Action\BaseAction;
7use Bitrix\Main\HttpRequest;
8use Bitrix\Main\Localization\Loc;
9use Bitrix\Main\Result;
10
11final class CopyElementItem extends BaseAction
12{
13 use WithUrl;
14
15 public static function getId(): string
16 {
17 return 'copy_element';
18 }
19
21 {
22 // only open url
23
24 return null;
25 }
26
27 protected function getText(): string
28 {
29 return Loc::getMessage('IBLOCK_GRID_ROW_ACTIONS_COPY_ELEMENT_NAME');
30 }
31
32 public function getControl(array $rawFields): ?array
33 {
34 if (empty($this->url))
35 {
36 return null;
37 }
38
39 $this->onclick = "top.BX.SidePanel.Instance.open('" . $this->getUrlForOnclick() . "')";
40
41 return parent::getControl($rawFields);
42 }
43}
if(!Loader::includeModule('catalog')) if(!AccessController::getCurrent() ->check(ActionDictionary::ACTION_PRICE_EDIT)) if(!check_bitrix_sessid()) $request
Определения catalog_reindex.php:36
processRequest(HttpRequest $request)
Определения copyelementitem.php:20
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804