class ChoiceView extends ChoiceView

Represents a choice in templates.

Properties

$label from ChoiceView
$value from ChoiceView
$data from ChoiceView
$attr Additional attributes for the HTML tag.

Methods

__construct(mixed $data, string $value, string $label, array $attr = array())

Creates a new choice view.

Details

at line 67
__construct(mixed $data, string $value, string $label, array $attr = array())

Creates a new choice view.

Parameters

mixed $data The original choice
string $value The view representation of the choice
string $label The label displayed to humans
array $attr Additional attributes for the HTML tag