Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
RemoveNodeAction.php
1
<?php
2
3
namespace
Bitrix\Landing\History\Action
;
4
5
class
RemoveNodeAction
extends
BaseAction
6
{
7
protected
const
JS_COMMAND
=
'removeNode'
;
8
9
public
function
execute
(
bool
$undo =
true
): bool
10
{
11
return
true
;
12
}
13
14
public
static
function
enrichParams
(array
$params
): array
15
{
16
return
$params
;
17
}
18
23
public
function
getJsCommand
(
bool
$undo =
true
): array
24
{
25
$params
= parent::getJsCommand($undo);
26
27
$params
[
'params'
][
'value'
] =
28
$undo
29
?
$params
[
'params'
][
'valueBefore'
]
30
:
$params
[
'params'
][
'valueAfter'
]
31
;
32
33
unset(
34
$params
[
'params'
][
'valueAfter'
],
35
$params
[
'params'
][
'valueBefore'
],
36
);
37
38
return
$params
;
39
}
40
}
Bitrix\Landing\History\Action\BaseAction
Definition
BaseAction.php:5
Bitrix\Landing\History\Action\BaseAction\$params
array $params
Definition
BaseAction.php:7
Bitrix\Landing\History\Action\RemoveNodeAction
Definition
RemoveNodeAction.php:6
Bitrix\Landing\History\Action\RemoveNodeAction\getJsCommand
getJsCommand(bool $undo=true)
Definition
RemoveNodeAction.php:23
Bitrix\Landing\History\Action\RemoveNodeAction\enrichParams
static enrichParams(array $params)
Definition
RemoveNodeAction.php:14
Bitrix\Landing\History\Action\RemoveNodeAction\execute
execute(bool $undo=true)
Definition
RemoveNodeAction.php:9
Bitrix\Landing\History\Action\RemoveNodeAction\JS_COMMAND
const JS_COMMAND
Definition
RemoveNodeAction.php:7
Bitrix\Landing\History\Action
Definition
AddBlockAction.php:3
modules
landing
lib
History
Action
RemoveNodeAction.php
Создано системой
1.10.0