src/Ffcms/Core/Helper/HTML/Form/RadioField.php 1 location
|
@@ 44-46 (lines=3) @@
|
41 |
|
// get options from properties |
42 |
|
$options = $this->properties['options']; |
43 |
|
unset($this->properties['options']); |
44 |
|
if (!Obj::isArray($options) || count($options) < 1) { |
45 |
|
throw new SyntaxException('Radio field ' . self::nohtml($this->name) . ' have no options passed'); |
46 |
|
} |
47 |
|
|
48 |
|
// value is not used there |
49 |
|
unset($this->properties['value']); |
src/Ffcms/Core/Helper/HTML/Form/SelectField.php 1 location
|
@@ 37-39 (lines=3) @@
|
34 |
|
// get options from properties |
35 |
|
$options = $this->properties['options']; |
36 |
|
unset($this->properties['options']); |
37 |
|
if (!Obj::isArray($options) || count($options) < 1) { |
38 |
|
throw new SyntaxException('Select field ' . self::nohtml($this->name) . ' have no options passed'); |
39 |
|
} |
40 |
|
// value is not used there |
41 |
|
unset($this->properties['value']); |
42 |
|
// options is defined as key->value array? |