Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
edititem.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
EditItem
extends
BaseAction
12
{
13
use WithUrl;
14
15
public
static
function
getId
(): string
16
{
17
return
'edit'
;
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_EDIT_ITEM_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\EditItem
Definition
edititem.php:12
Bitrix\Iblock\Grid\Row\Actions\Item\EditItem\getControl
getControl(array $rawFields)
Definition
edititem.php:32
Bitrix\Iblock\Grid\Row\Actions\Item\EditItem\getText
getText()
Definition
edititem.php:27
Bitrix\Iblock\Grid\Row\Actions\Item\EditItem\getId
static getId()
Definition
edititem.php:15
Bitrix\Iblock\Grid\Row\Actions\Item\EditItem\processRequest
processRequest(HttpRequest $request)
Definition
edititem.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
edititem.php
Создано системой
1.10.0