ICanBoogie/CLDR v1.5.0
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • CLDR

Classes

  • Calendar
  • CalendarCollection
  • Currency
  • CurrencyCollection
  • CurrencyFormatter
  • DateFormatter
  • DateTimeFormatter
  • FileProvider
  • ListFormatter
  • Locale
  • LocaleCollection
  • LocalizedCurrency
  • LocalizedDateTime
  • LocalizedListFormatter
  • LocalizedLocale
  • LocalizedNumberFormatter
  • LocalizedObject
  • LocalizedObjectWithFormatter
  • LocalizedTerritory
  • NumberFormatter
  • NumberPattern
  • NumberPatternParser
  • Numbers
  • ProviderCollection
  • RedisProvider
  • Repository
  • RunTimeProvider
  • Supplemental
  • Territory
  • TerritoryCollection
  • TimeFormatter
  • WebProvider

Interfaces

  • Exception
  • Formatter
  • LocalizeAwareInterface
  • Provider

Traits

  • CodePropertyTrait
  • CollectionTrait
  • LocalePropertyTrait
  • ProviderStorageBinding
  • RepositoryPropertyTrait

Exceptions

  • ResourceNotFound
  • TerritoryNotDefined

Class ListFormatter

Formats variable-length lists of things such as "Monday, Tuesday, Friday, and Saturday".

ICanBoogie\CLDR\ListFormatter implements ICanBoogie\CLDR\Formatter uses ICanBoogie\Accessor\AccessorTrait (not available) ICanBoogie\CLDR\RepositoryPropertyTrait
Namespace: ICanBoogie\CLDR
See: http://www.unicode.org/reports/tr35/tr35-general.html#ListPatterns
Located at ListFormatter.php

Methods summary

public
# __construct( ICanBoogie\CLDR\Repository $repository = null )

Parameters

$repository
public string
# __invoke( array $list, array $list_patterns )

Formats a variable-length lists of things.

Formats a variable-length lists of things.

Parameters

$list
The list to format.
$list_patterns
A list patterns.

Returns

string
public string
# format( array $list, array $list_patterns )

Formats a variable-length lists of things.

Formats a variable-length lists of things.

Parameters

$list
The list to format.
$list_patterns
A list patterns.

Returns

string
public ICanBoogie\CLDR\LocalizedListFormatter
# localize( string $locale_code )

Localize the instance.

Localize the instance.

Parameters

$locale_code

Returns

ICanBoogie\CLDR\LocalizedListFormatter

Throw

\LogicException when the instance was created without a repository.

Methods used from ICanBoogie\CLDR\RepositoryPropertyTrait

get_repository()

Properties summary

Magic properties used from ICanBoogie\CLDR\RepositoryPropertyTrait

$repository

ICanBoogie/CLDR v1.5.0 API documentation generated by ApiGen