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 Repository

Representation of a CLDR.

<?php

namespace ICanBoogie\CLDR;

$repository = new Repository($provider);

var_dump($repository->locales['fr']);
var_dump($repository->territories['FR']);
ICanBoogie\CLDR\Repository uses ICanBoogie\Accessor\AccessorTrait (not available)
Namespace: ICanBoogie\CLDR
See: http://www.unicode.org/repos/cldr-aux/json/24/
Located at Repository.php

Methods summary

protected ICanBoogie\CLDR\Provider
# get_provider( )

Returns

ICanBoogie\CLDR\Provider
protected ICanBoogie\CLDR\LocaleCollection
# lazy_get_locales( )

Returns

ICanBoogie\CLDR\LocaleCollection
protected ICanBoogie\CLDR\Supplemental
# lazy_get_supplemental( )

Returns

ICanBoogie\CLDR\Supplemental
protected ICanBoogie\CLDR\TerritoryCollection
# lazy_get_territories( )

Returns

ICanBoogie\CLDR\TerritoryCollection
protected ICanBoogie\CLDR\CurrencyCollection
# lazy_get_currencies( )

Returns

ICanBoogie\CLDR\CurrencyCollection
protected ICanBoogie\CLDR\NumberFormatter
# lazy_get_number_formatter( )

Returns

ICanBoogie\CLDR\NumberFormatter
protected ICanBoogie\CLDR\ListFormatter
# lazy_get_list_formatter( )

Returns

ICanBoogie\CLDR\ListFormatter
protected ICanBoogie\CLDR\Plurals
# lazy_get_plurals( )

Returns

ICanBoogie\CLDR\Plurals
public
# __construct( ICanBoogie\CLDR\Provider $provider )

Initializes the $provider property.

Initializes the $provider property.

Parameters

$provider
public array
# fetch( string $path )

Fetches the data available at the specified path.

Fetches the data available at the specified path.

Note: The method is forwarded to Provider::provide.

Parameters

$path

Returns

array
public string
# format_number( mixed $number, string $pattern, array $symbols = [] )

Format a number with the specified pattern.

Format a number with the specified pattern.

Parameters

$number
The number to be formatted.
$pattern
The pattern used to format the number.
$symbols
Symbols.

Returns

string

See

NumberFormatter::format()
public string
# format_list( 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

See

ListFormatter::format()

Properties summary

Magic properties

public read-only ICanBoogie\CLDR\Provider $provider
public read-only ICanBoogie\CLDR\LocaleCollection $locales
public read-only ICanBoogie\CLDR\Supplemental $supplemental
public read-only ICanBoogie\CLDR\TerritoryCollection $territories
public read-only ICanBoogie\CLDR\CurrencyCollection $currencies
public read-only ICanBoogie\CLDR\NumberFormatter $number_formatter
public read-only ICanBoogie\CLDR\ListFormatter $list_formatter
public read-only ICanBoogie\CLDR\Plurals $plurals
ICanBoogie/CLDR master API documentation generated by ApiGen