# acymailing/10.2.2/back/Controllers/SegmentsController.php

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

- Page: https://pluginprobe.com/plugins/acymailing/10.2.2/code/back/Controllers/SegmentsController.php
- Raw: https://pluginprobe.com/plugins/acymailing/10.2.2/raw/back/Controllers/SegmentsController.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.2.2/code/back/Controllers/SegmentsController.php#L10-L20`.

```php
<?php

namespace AcyMailing\Controllers;

use AcyMailing\Core\AcymController;
use AcyMailing\Controllers\Segments\Listing;
use AcyMailing\Controllers\Segments\Edition;
use AcyMailing\Controllers\Segments\Campaign;

class SegmentsController extends AcymController
{
    use Listing;
    use Edition;
    use Campaign;

    public const FLAG_USERS = -1;
    public const FLAG_EXPORT_USERS = -2;
    public const FLAG_COUNT = -3;

    public function __construct()
    {
        parent::__construct();

        $this->breadcrumb[acym_translation('ACYM_SEGMENTS')] = acym_completeLink('segments');
        $this->loadScripts = [
            'edit' => ['datepicker', 'vue-applications' => ['modal_users_summary']],
        ];
    }
}

```
