src/Ffcms/Core/Helper/HTML/Form/MultiCheckboxField.php 1 location
|
@@ 44-48 (lines=5) @@
|
| 41 |
|
{ |
| 42 |
|
// check if options is defined |
| 43 |
|
$options = false; |
| 44 |
|
if (isset($this->properties['options']) && Obj::isArray($this->properties['options'])) { |
| 45 |
|
$options = $this->properties['options']; |
| 46 |
|
} else { |
| 47 |
|
throw new SyntaxException('Options for field ' . self::nohtml($this->name) . ' is not defined'); |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
// set field type |
| 51 |
|
$this->properties['type'] = 'checkbox'; |
src/Ffcms/Core/Helper/HTML/Form/MultiSelectField.php 1 location
|
@@ 38-42 (lines=5) @@
|
| 35 |
|
// check if options is defined |
| 36 |
|
$options = false; |
| 37 |
|
$optionsKey = (bool)$this->properties['optionsKey']; |
| 38 |
|
if (isset($this->properties['options']) && Obj::isArray($this->properties['options'])) { |
| 39 |
|
$options = $this->properties['options']; |
| 40 |
|
} else { |
| 41 |
|
throw new SyntaxException('Options for field ' . self::nohtml($this->name) . ' is not defined'); |
| 42 |
|
} |
| 43 |
|
|
| 44 |
|
// set global field type |
| 45 |
|
$this->properties['type'] = 'select'; |