ICanBoogie/CLDR master
  • Namespace
  • Class

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
Extended by ICanBoogie\CLDR\LocalizedListFormatter implements ICanBoogie\CLDR\Formatter
Namespace: ICanBoogie\CLDR
Located at LocalizedListFormatter.php

Methods summary

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

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 string
# format( array $list, array|string $list_patterns_or_type = self::TYPE_STANDARD )

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

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

Properties summary

Properties inherited from ICanBoogie\CLDR\LocalizedObject

$options, $target

Magic properties

public read-only ICanBoogie\CLDR\ListFormatter $target

Magic properties inherited from ICanBoogie\CLDR\LocalizedObject

$locale

Magic properties used from ICanBoogie\CLDR\LocalePropertyTrait

$locale

ICanBoogie/CLDR master API documentation generated by ApiGen