1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
MultiplyAction.php
См. документацию.
1<?php
2
3namespace Bitrix\Landing\History\Action;
4
5use Bitrix\Landing\Block;
6use Bitrix\Landing\History\ActionFactory;
7use Bitrix\Landing\Node;
8use Bitrix\Main\Web\Json;
9
11{
12 protected const JS_COMMAND = 'multiply';
13
14 public function execute(bool $undo = true): bool
15 {
16 foreach ($this->params as $param)
17 {
18 if (is_array($param) && $param['ACTION'] && $param['ACTION_PARAMS'])
19 {
20 $action = ActionFactory::getAction($param['ACTION'], $undo);
21 if ($action)
22 {
23 $action->setParams($param['ACTION_PARAMS'], true);
24 $action->execute($undo);
25 }
26 }
27 }
28
29 return true;
30 }
31
32 public static function enrichParams(array $params): array
33 {
34 return $params;
35 }
36
41 public function getJsCommand(bool $undo = true): array
42 {
43 $command = parent::getJsCommand($undo);
44 $command['params'] = [];
45
46 foreach ($this->params as $param)
47 {
48 if (is_array($param) && $param['ACTION'] && $param['ACTION_PARAMS'])
49 {
50 $action = ActionFactory::getAction($param['ACTION'], $undo);
51 if ($action)
52 {
53 $action->setParams($param['ACTION_PARAMS'], true);
54 $command['params'][] = $action->getJsCommand($undo);
55 }
56 }
57 }
58
59 return $command;
60 }
61}
getJsCommand(bool $undo=true)
Определения MultiplyAction.php:41
static enrichParams(array $params)
Определения MultiplyAction.php:32
static getAction(string $actionName, ?bool $undo=false)
Определения ActionFactory.php:134
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$action
Определения file_dialog.php:21