Symfony\Component\Form\Extension\Core\ChoiceList\LazyChoiceList
A choice list that is loaded lazily
This list loads itself as soon as any of the getters is accessed for the
first time. You should implement loadChoiceList() in your child classes,
which should return a ChoiceListInterface instance.
- Author: Bernhard Schussek <bschussek@gmail.com>
Synopsis
class LazyChoiceList
implements
ChoiceListInterface
{
- // members
- private ChoiceListInterface $choiceList;
- // methods
- public void getChoices()
- public void getValues()
- public void getPreferredViews()
- public void getRemainingViews()
- public void getChoicesForValues()
- public void getValuesForChoices()
- public void getIndicesForChoices()
- public void getIndicesForValues()
- protected abstract ChoiceListInterface loadChoiceList()
- private void load()
Hierarchy
Members
private
- $choiceList
—
Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceListInterface
The loaded choice list
Methods
private
protected
- loadChoiceList() — Loads the choice list
public
- getChoices() — {@inheritdoc}
- getChoicesForValues() — {@inheritdoc}
- getIndicesForChoices() — {@inheritdoc}
- getIndicesForValues() — {@inheritdoc}
- getPreferredViews() — {@inheritdoc}
- getRemainingViews() — {@inheritdoc}
- getValues() — {@inheritdoc}
- getValuesForChoices() — {@inheritdoc}