ICanBoogie
  • Documentation
  • API Reference
  • CLDR master
Namespaces
  • ICanBoogie
    • CLDR
      • Plurals
      • Units
Classes
  • AbstractCollection
  • AbstractSectionCollection
  • Calendar
  • CalendarCollection
  • ContextTransforms
  • Currency
  • CurrencyCollection
  • CurrencyFormatter
  • DateFormatter
  • DateTimeAccessor
  • DateTimeFormatter
  • FileProvider
  • ListFormatter
  • Locale
  • LocaleCollection
  • LocalizedCurrency
  • LocalizedDateTime
  • LocalizedListFormatter
  • LocalizedLocale
  • LocalizedNumberFormatter
  • LocalizedObject
  • LocalizedObjectWithFormatter
  • LocalizedTerritory
  • Number
  • NumberFormatter
  • NumberPattern
  • NumberPatternParser
  • Numbers
  • Plurals
  • ProviderCollection
  • RedisProvider
  • Repository
  • RunTimeProvider
  • Supplemental
  • Territory
  • TerritoryCollection
  • TimeFormatter
  • Units
  • WebProvider
Interfaces
  • Exception
  • Formatter
  • LocalizeAwareInterface
  • Provider
Traits
  • CodePropertyTrait
  • CollectionTrait
  • LocalePropertyTrait
  • LocalizeTrait
  • ProviderStorageBinding
  • RepositoryPropertyTrait
Exceptions
  • ResourceNotFound
  • TerritoryNotDefined

Class LocalizedListFormatter

Formats a variable-length lists of things.

ICanBoogie\CLDR\LocalizedObject uses ICanBoogie\Accessor\AccessorTrait (not available) ICanBoogie\CLDR\LocalePropertyTrait
┗ ICanBoogie\CLDR\LocalizedListFormatter implements ICanBoogie\CLDR\Formatter
Namespace: ICanBoogie\CLDR
Located at LocalizedListFormatter.php

Methods summary

public __invoke( array $list, array|string $list_patterns_or_type = self::TYPE_STANDARD ) : string

Formats a variable-length lists of things.

Formats a variable-length lists of things.

Parameters

$list
The list to format.
$list_patterns_or_type

A list patterns or a list patterns type (one of TYPE_*).

Returns

string
public format( array $list, array|string $list_patterns_or_type = self::TYPE_STANDARD ) : string

Formats a variable-length lists of things.

Formats a variable-length lists of things.

Parameters

$list
The list to format.
$list_patterns_or_type

A list patterns or a list patterns type (one of TYPE_*).

Returns

string

Methods inherited from ICanBoogie\CLDR\LocalizedObject

__construct(), from(), get_target()

Methods used from ICanBoogie\CLDR\LocalePropertyTrait

get_locale()

Constants summary

TYPE_STANDARD : string
'standard'
TYPE_UNIT : string
'unit'
TYPE_UNIT_NARROW : string
'unit-narrow'
TYPE_UNIT_SHORT : string
'unit-short'

Properties summary

Properties inherited from ICanBoogie\CLDR\LocalizedObject

$options, $target

Magic properties

public read-only $target : ICanBoogie\CLDR\ListFormatter

Magic properties inherited from ICanBoogie\CLDR\LocalizedObject

$locale

Magic properties used from ICanBoogie\CLDR\LocalePropertyTrait

$locale

CLDR master – Check on GitHub – API documentation generated by ApiGen