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 Territory

A territory.

ICanBoogie\CLDR\Territory uses ICanBoogie\Accessor\AccessorTrait (not available) ICanBoogie\CLDR\RepositoryPropertyTrait, ICanBoogie\CLDR\CodePropertyTrait
Namespace: ICanBoogie\CLDR
See: http://www.unicode.org/reports/tr35/tr35-numbers.html#Supplemental_Currency_Data
Located at Territory.php

Methods summary

public
# __construct( ICanBoogie\CLDR\Repository $repository, string $code )

Initialize the $repository and $code properties.

Initialize the $repository and $code properties.

Parameters

$repository
$code
The ISO code of the territory.
public
# __get( $property )

Inheritdoc

protected array
# lazy_get_containment( )

Return the territoryContainment data.

Return the territoryContainment data.

Returns

array
protected array
# lazy_get_currencies( )

Returns the currencies used throughout the history of the territory.

Returns the currencies used throughout the history of the territory.

Returns

array
protected ICanBoogie\CLDR\Currency
# lazy_get_currency( )

Returns

ICanBoogie\CLDR\Currency
public ICanBoogie\CLDR\Currency
# currency_at( DateTimeInterface|mixed $date = null )

Return the currency used in the territory at a point in time.

Return the currency used in the territory at a point in time.

Parameters

$date

Returns

ICanBoogie\CLDR\Currency
protected string
# get_first_day( )

Return the code of the first day of the week.

Return the code of the first day of the week.

Returns

string
protected string
# get_weekend_start( )

Return the code of the first day of the weekend.

Return the code of the first day of the weekend.

Returns

string
protected string
# get_weekend_end( )

Return the code of the last day of the weekend.

Return the code of the last day of the weekend.

Returns

string
protected array
# lazy_get_info( )

Return the territoryInfo data.

Return the territoryInfo data.

Returns

array
protected string|boolean
# lazy_get_language( )

Return the ISO code of the official language of the territory.

Return the ISO code of the official language of the territory.

Returns

string|boolean

The ISO code of the official language, or `false' if it cannot be determined.

protected integer
# get_population( )

Return the population of the territory.

Return the population of the territory.

Returns

integer
public boolean
# is_containing( string $code )

Whether the territory contains the specified territory.

Whether the territory contains the specified territory.

Parameters

$code

Returns

boolean
public string
# name_as( string $locale_code )

Return the name of the territory localized according to the specified locale code.

Return the name of the territory localized according to the specified locale code.

Parameters

$locale_code
The ISO code of the locale.

Returns

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

Localize the currency.

Localize the currency.

Parameters

$locale_code

Returns

ICanBoogie\CLDR\LocalizedCurrency

Methods used from ICanBoogie\CLDR\RepositoryPropertyTrait

get_repository()

Methods used from ICanBoogie\CLDR\CodePropertyTrait

__toString(), get_code()

Properties summary

Magic properties

public read-only array $containment

The territoryContainment data.

public read-only array $info

The territoryInfo data.

public read-only array $currencies

The currencies available in the country.

public read-only string $currency

The current currency.

public read-only string $first_day

The code of the first day of the week for the territory.

public read-only string $weekend_start

The code of the first day of the weekend.

public read-only string $weekend_end

The code of the last day of the weekend.

public read-only string|boolean $language

The ISO code of the official language, or `false' if it cannot be determined.

public read-only integer $population

The population of the territory.

Magic properties used from ICanBoogie\CLDR\RepositoryPropertyTrait

$repository

Magic properties used from ICanBoogie\CLDR\CodePropertyTrait

$code

ICanBoogie/CLDR v1.5.0 API documentation generated by ApiGen