21 private $selectOptions;
44 if ($frontendType != self::FRONTEND_WIZARD_SELECT && $frontendType != self::FRONTEND_WIZARD_RADIO) {
45 throw new \InvalidArgumentException(
"Frontend input type has to be 'select' or 'radio'.");
48 throw new \InvalidArgumentException(
'Select options can\'t be empty.');
69 return $this->selectOptions;
82 throw new \InvalidArgumentException(
"Value specified for '{$this->getName()}' is not supported: '{$data}'");
84 parent::validate(
$data);
__construct( $name, $frontendType, array $selectOptions, $configPath, $description='', $defaultValue=null, $shortCut=null)
const FRONTEND_WIZARD_RADIO
const FRONTEND_WIZARD_SELECT
if(!isset($_GET['name'])) $name