| @@ -1,11 +1,17 @@ | ||
| 1 | 1 | <?php |
| 2 | +defined('ABSPATH') || die('Restricted Access'); | |
| 2 | 3 | |
| 3 | 4 | include_once __DIR__.DIRECTORY_SEPARATOR.'AcymJFormField.php'; |
| 4 | 5 | |
| 6 | +// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound -- Joomla specific class naming with imposed prefix "JFormField". | |
| 5 | 7 | class JFormFieldArchive extends AcymJFormField |
| 6 | 8 | { |
| 7 | - var $type = 'archive'; | |
| 9 | + public function __construct($form = null) | |
| 10 | + { | |
| 11 | + $this->type = 'archive'; | |
| 12 | + parent::__construct($form); | |
| 13 | + } | |
| 8 | 14 | |
| 9 | 15 | public function getInput() |
| 10 | 16 | { |
| 11 | 17 | |