class ChoiceListView

Represents a choice list in templates.

A choice list contains choices and optionally preferred choices which are displayed in the very beginning of the list. Both choices and preferred choices may be grouped in {@link ChoiceGroupView} instances.

Properties

ChoiceGroupView[]|ChoiceView[] $choices The choices.
ChoiceGroupView[]|ChoiceView[] $preferredChoices The preferred choices.

Methods

__construct(array $choices = array(), array $preferredChoices = array())

Creates a new choice list view.

Details

at line line 46
__construct(array $choices = array(), array $preferredChoices = array())

Creates a new choice list view.

Parameters

array $choices The choice views.
array $preferredChoices The preferred choice views.