# acymailing/10.10.2/back/Controllers/AutomationController.php

AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress, version 10.10.2. 42 lines.

- Page: https://pluginprobe.com/plugins/acymailing/10.10.2/code/back/Controllers/AutomationController.php
- Raw: https://pluginprobe.com/plugins/acymailing/10.10.2/raw/back/Controllers/AutomationController.php
- Modified: 2025-03-03T13:35:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/acymailing/10.10.2/code/back/Controllers/AutomationController.php#L10-L20`.

```php
<?php

namespace AcyMailing\Controllers;

use AcyMailing\Core\AcymController;
use AcyMailing\Controllers\Automations\Listing;
use AcyMailing\Controllers\Automations\Info;
use AcyMailing\Controllers\Automations\Condition;
use AcyMailing\Controllers\Automations\Filter;
use AcyMailing\Controllers\Automations\Action;
use AcyMailing\Controllers\Automations\Summary;
use AcyMailing\Controllers\Automations\MassAction;

class AutomationController extends AcymController
{
    use Listing;
    use Info;
    use Condition;
    use Filter;
    use Action;
    use Summary;
    use MassAction;

    public function __construct()
    {
        parent::__construct();
        $this->breadcrumb[acym_translation('ACYM_AUTOMATIONS')] = acym_completeLink('automation');
        $this->loadScripts = [
            'info' => ['datepicker'],
            'condition' => ['datepicker'],
            'action' => ['datepicker'],
            'filter' => ['datepicker', 'vue-applications' => ['modal_users_summary']],
        ];
        acym_setVar('edition', '1');
    }

    public function switches(array $matches): string
    {
        return '__numand__'.$matches[1].$matches[2].'__numand__'.$matches[3].'__numand__'.$matches[4].'__numand__'.$matches[5];
    }
}

```
