Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
RemoveCardAction.php
1
<?php
2
3
namespace
Bitrix\Landing\History\Action
;
4
5
use
Bitrix\Landing\Block
;
6
7
class
RemoveCardAction
extends
AddCardAction
8
{
9
protected
const
JS_COMMAND
=
'removeCard'
;
10
11
public
function
execute
(
bool
$undo =
true
): bool
12
{
13
$block =
new
Block
((
int
)$this->params[
'block'
]);
14
$block->removeCard($this->params[
'selector'
], $this->params[
'position'
]);
15
16
return
$block->save();
17
}
18
}
Bitrix\Landing\Block
Definition
block.php:21
Bitrix\Landing\History\Action\AddCardAction
Definition
AddCardAction.php:9
Bitrix\Landing\History\Action\RemoveCardAction
Definition
RemoveCardAction.php:8
Bitrix\Landing\History\Action\RemoveCardAction\execute
execute(bool $undo=true)
Definition
RemoveCardAction.php:11
Bitrix\Landing\History\Action\RemoveCardAction\JS_COMMAND
const JS_COMMAND
Definition
RemoveCardAction.php:9
Bitrix\Landing\Block
Definition
cache.php:2
Bitrix\Landing\History\Action
Definition
AddBlockAction.php:3
modules
landing
lib
History
Action
RemoveCardAction.php
Создано системой
1.10.0