| @@ -1,35 +1,0 @@ | ||
| 1 | -<?php | |
| 2 | -defined('ABSPATH') || die('Restricted Access'); | |
| 3 | - | |
| 4 | -include_once __DIR__.DIRECTORY_SEPARATOR.'AcymJFormField.php'; | |
| 5 | - | |
| 6 | -// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound -- Joomla specific class naming with imposed prefix "JFormField". | |
| 7 | -class JFormFieldArchive extends AcymJFormField | |
| 8 | -{ | |
| 9 | - public function __construct($form = null) | |
| 10 | - { | |
| 11 | - $this->type = 'archive'; | |
| 12 | - parent::__construct($form); | |
| 13 | - } | |
| 14 | - | |
| 15 | - public function getInput() | |
| 16 | - { | |
| 17 | - | |
| 18 | - $value = empty($this->value) ? 0 : $this->value; | |
| 19 | - | |
| 20 | - return acym_select( | |
| 21 | - [ | |
| 22 | - '5' => '5', | |
| 23 | - '10' => '10', | |
| 24 | - '15' => '15', | |
| 25 | - '20' => '20', | |
| 26 | - '30' => '30', | |
| 27 | - '50' => '50', | |
| 28 | - '100' => '100', | |
| 29 | - '200' => '200', | |
| 30 | - ], | |
| 31 | - $this->name, | |
| 32 | - $value | |
| 33 | - ); | |
| 34 | - } | |
| 35 | -} | |