SingleOptionFieldData
- Type
- Class
- Namespace
- Craft
- Inherits
- Craft\SingleOptionFieldData » Craft\OptionData
- Since
- 1.0
Single-select option field data class.
See also http://craftcms.com
View source (opens new window)
# Public Properties
| Property | Description |
|---|---|
| $label | string (opens new window) |
| $selected | |
| $value | string (opens new window) |
# Public Methods
| Method | Description |
|---|---|
| __construct() | Constructor |
| __toString() | |
| getOptions() | Returns the options. |
| setOptions() | Sets the options. |
# getOptions()
Signature
public array, null getOptions ( )
# setOptions()
Sets the options.
View source (opens new window)
Arguments
$options(array (opens new window))
Returns
Signature
public null setOptions ( $options )