# acymailing/10.2.2/front/Params/archive.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/front/Params/archive.php
- Raw: https://pluginprobe.com/plugins/acymailing/10.2.2/raw/front/Params/archive.php
- Modified: 2025-01-28T10:30:36+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/front/Params/archive.php#L10-L20`.

```php
<?php

include_once __DIR__.DIRECTORY_SEPARATOR.'AcymJFormField.php';

class JFormFieldArchive extends AcymJFormField
{
    var $type = 'archive';

    public function getInput()
    {

        $value = empty($this->value) ? 0 : $this->value;

        return acym_select(
            [
                '5' => '5',
                '10' => '10',
                '15' => '15',
                '20' => '20',
                '30' => '30',
                '50' => '50',
                '100' => '100',
                '200' => '200',
            ],
            $this->name,
            $value
        );
    }
}

```
