PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.1.1
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.1.1
11.1.1 11.1.0 11.0.5 11.0.4 11.0.3 11.0.2 11.0.1 11.0.0 10.11.1 10.11.0 10.10.2 10.10.1 10.10.0 10.9.1 trunk 10.0.0 10.0.1 10.1.0 10.1.1 10.1.2 10.1.3 10.1.4 10.2.0 10.2.1 10.2.2 All 62 releases
← All changes | back/Controllers/Automations/MassAction.php +0 -40 10.10.2 → 11.1.1 View file →
@@ -1,40 +1,0 @@
1 -<?php
2 -
3 -namespace AcyMailing\Controllers\Automations;
4 -
5 -use AcyMailing\Classes\AutomationClass;
6 -
7 -trait MassAction
8 -{
9 - public function setFilterMassAction(): void
10 - {
11 - $this->setSaveFilters(true);
12 - $this->summary();
13 - }
14 -
15 - public function setActionMassAction(): void
16 - {
17 - $this->getSaveActions(true);
18 - $this->filter();
19 - }
20 -
21 - public function processMassAction(): void
22 - {
23 - acym_session();
24 - $automationClass = new AutomationClass();
25 - $massAction = empty($_SESSION['massAction']) ? '' : $_SESSION['massAction'];
26 - if (!empty($massAction)) {
27 - $automation = new \stdClass();
28 - $automation->filters = json_encode($massAction['filters']);
29 - $automation->actions = json_encode($massAction['actions']);
30 - $automationClass->execute($automation);
31 -
32 - if (!empty($automationClass->report)) {
33 - foreach ($automationClass->report as $oneReport) {
34 - acym_enqueueMessage($oneReport, 'info');
35 - }
36 - }
37 - }
38 - $this->listing();
39 - }
40 -}