OptionData
- Type
- Class
- Namespace
- Craft
- Inherits
- Craft\OptionData
- Extended by
- Craft\SingleOptionFieldData
- Since
- 1.0
Class OptionData
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) |
# $label
Signature
public string $label = null
# $selected
Signature
public $selected = null
# $value
Signature
public string $value = null
# Public Methods
Method | Description |
---|---|
__construct() | Constructor |
__toString() |
# __construct()
Constructor
View source (opens new window)
Arguments
$label
(string (opens new window))$value
(string (opens new window))$selected
Returns
Signature
public Craft\OptionData __construct ( $label, $value, $selected )
# __toString()
Signature
public string __toString ( )