Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
AddNodeAction.php
1
<?php
2
3
namespace
Bitrix\Landing\History\Action
;
4
5
class
AddNodeAction
extends
BaseAction
6
{
7
protected
const
JS_COMMAND
=
'addNode'
;
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\AddNodeAction
Definition
AddNodeAction.php:6
Bitrix\Landing\History\Action\AddNodeAction\getJsCommand
getJsCommand(bool $undo=true)
Definition
AddNodeAction.php:23
Bitrix\Landing\History\Action\AddNodeAction\enrichParams
static enrichParams(array $params)
Definition
AddNodeAction.php:14
Bitrix\Landing\History\Action\AddNodeAction\execute
execute(bool $undo=true)
Definition
AddNodeAction.php:9
Bitrix\Landing\History\Action\AddNodeAction\JS_COMMAND
const JS_COMMAND
Definition
AddNodeAction.php:7
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
Definition
AddBlockAction.php:3
modules
landing
lib
History
Action
AddNodeAction.php
Создано системой
1.10.0