Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
detailviewitem.php
1
<?php
2
3
namespace
Bitrix\Iblock\Grid\Row\Actions\Item
;
4
5
use Bitrix\Iblock\Grid\Row\Actions\Item\Helpers\WithUrl;
6
use
Bitrix\Main\Grid\Row\Action\BaseAction
;
7
use
Bitrix\Main\HttpRequest
;
8
use
Bitrix\Main\Localization\Loc
;
9
use
Bitrix\Main\Result
;
10
11
final
class
DetailViewItem
extends
BaseAction
12
{
13
use WithUrl;
14
15
public
static
function
getId
(): string
16
{
17
return
'detail_view'
;
18
}
19
20
public
function
processRequest
(
HttpRequest
$request): ?
Result
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_DETAIL_VIEW_NAME'
);
30
}
31
32
public
function
getControl
(array $rawFields): ?array
33
{
34
if
(empty($this->url))
35
{
36
return
null
;
37
}
38
39
$this->
default
=
true
;
40
$this->onclick =
"top.BX.SidePanel.Instance.open('"
. $this->getUrlForOnclick() .
"')"
;
41
42
return
parent::getControl($rawFields);
43
}
44
}
Bitrix\Iblock\Grid\Row\Actions\Item\DetailViewItem
Definition
detailviewitem.php:12
Bitrix\Iblock\Grid\Row\Actions\Item\DetailViewItem\getControl
getControl(array $rawFields)
Definition
detailviewitem.php:32
Bitrix\Iblock\Grid\Row\Actions\Item\DetailViewItem\getText
getText()
Definition
detailviewitem.php:27
Bitrix\Iblock\Grid\Row\Actions\Item\DetailViewItem\getId
static getId()
Definition
detailviewitem.php:15
Bitrix\Iblock\Grid\Row\Actions\Item\DetailViewItem\processRequest
processRequest(HttpRequest $request)
Definition
detailviewitem.php:20
Bitrix\Main\Grid\Row\Action\BaseAction
Definition
baseaction.php:11
Bitrix\Main\HttpRequest
Definition
httprequest.php:20
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\Main\ORM\Data\Result
Definition
result.php:16
Bitrix\Main\Result
Definition
result.php:14
Bitrix\Iblock\Grid\Row\Actions\Item
Definition
activateelementitem.php:3
modules
iblock
lib
grid
row
actions
item
detailviewitem.php
Создано системой
1.10.0