class ChoiceView extends ChoiceView
Represents a choice in templates.
string | $label | The label displayed to humans. |
string | $value | The view representation of the choice. |
mixed | $data | The original choice value. |
array | $attr | Additional attributes for the HTML tag. |
__construct(mixed $data, string $value, string $label, array $attr = array()) Creates a new choice view. |
Creates a new choice view.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/Form/ChoiceList/View/ChoiceView.html