mediatekformation

IntlCallbackChoiceLoader extends CallbackChoiceLoader
in package

Callback choice loader optimized for Intl choice types.

Tags
author

Jules Pietri jules@heahprod.com

author

Yonel Ceruto yonelceruto@gmail.com

Table of Contents

$callback  : mixed
$choiceList  : ArrayChoiceList
The loaded choice list.
__construct()  : mixed
loadChoiceList()  : ChoiceListInterface
Loads a list of choices.
loadChoicesForValues()  : array<string|int, mixed>
Loads the choices corresponding to the given values.
loadValuesForChoices()  : array<string|int, string>
Loads the values corresponding to the given choices.

Properties

Methods

__construct()

public __construct(callable $callback) : mixed
Parameters
$callback : callable

The callable returning an array of choices

Return values
mixed

loadChoicesForValues()

Loads the choices corresponding to the given values.

public loadChoicesForValues(array<string|int, mixed> $values[, mixed $value = null ]) : array<string|int, mixed>
Parameters
$values : array<string|int, mixed>

An array of choice values. Non-existing values in this array are ignored

$value : mixed = null

The callable generating the choice values

Return values
array<string|int, mixed>

An array of choices

loadValuesForChoices()

Loads the values corresponding to the given choices.

public loadValuesForChoices(array<string|int, mixed> $choices[, mixed $value = null ]) : array<string|int, string>
Parameters
$choices : array<string|int, mixed>

An array of choices. Non-existing choices in this array are ignored

$value : mixed = null

The callable generating the choice values

Return values
array<string|int, string>

An array of choice values

Search results