| 1 |
<?php |
| 2 |
|
| 3 |
namespace AcyMailing\Controllers; |
| 4 |
|
| 5 |
use AcyMailing\Core\AcymController; |
| 6 |
use AcyMailing\Controllers\Automations\Listing; |
| 7 |
use AcyMailing\Controllers\Automations\Info; |
| 8 |
use AcyMailing\Controllers\Automations\Condition; |
| 9 |
use AcyMailing\Controllers\Automations\Filter; |
| 10 |
use AcyMailing\Controllers\Automations\Action; |
| 11 |
use AcyMailing\Controllers\Automations\Summary; |
| 12 |
use AcyMailing\Controllers\Automations\MassAction; |
| 13 |
|
| 14 |
class AutomationController extends AcymController |
| 15 |
{ |
| 16 |
use Listing; |
| 17 |
use Info; |
| 18 |
use Condition; |
| 19 |
use Filter; |
| 20 |
use Action; |
| 21 |
use Summary; |
| 22 |
use MassAction; |
| 23 |
|
| 24 |
public function __construct() |
| 25 |
{ |
| 26 |
parent::__construct(); |
| 27 |
$this->breadcrumb[acym_translation('ACYM_AUTOMATIONS')] = acym_completeLink('automation'); |
| 28 |
$this->loadScripts = [ |
| 29 |
'info' => ['datepicker'], |
| 30 |
'condition' => ['datepicker'], |
| 31 |
'action' => ['datepicker'], |
| 32 |
'filter' => ['datepicker', 'vue-applications' => ['modal_users_summary']], |
| 33 |
]; |
| 34 |
acym_setVar('edition', '1'); |
| 35 |
} |
| 36 |
|
| 37 |
public function switches(array $matches): string |
| 38 |
{ |
| 39 |
return '__numand__'.$matches[1].$matches[2].'__numand__'.$matches[3].'__numand__'.$matches[4].'__numand__'.$matches[5]; |
| 40 |
} |
| 41 |
} |
| 42 |
|