Autodoc
  • Namespace
  • Class
  • Tree

Namespaces

  • BlueTihi
    • Context
  • Brickrouge
    • Element
      • Nodes
    • Renderer
    • Widget
  • ICanBoogie
    • ActiveRecord
    • AutoConfig
    • CLDR
    • Composer
    • Core
    • Event
    • Exception
    • HTTP
      • Dispatcher
      • Request
    • I18n
      • Translator
    • Mailer
    • Modules
      • Taxonomy
        • Support
      • Thumbnailer
        • Versions
    • Object
    • Operation
      • Dispatcher
    • Prototype
    • Routes
    • Routing
      • Dispatcher
    • Session
  • Icybee
    • ActiveRecord
      • Model
    • ConfigOperation
    • Document
    • EditBlock
    • Element
      • ActionbarContextual
      • ActionbarSearch
      • ActionbarToolbar
    • FormBlock
    • Installer
    • ManageBlock
    • Modules
      • Articles
      • Cache
        • Collection
        • ManageBlock
      • Comments
        • ManageBlock
      • Contents
        • ManageBlock
      • Dashboard
      • Editor
        • Collection
      • Files
        • File
        • ManageBlock
      • Forms
        • Form
        • ManageBlock
      • I18n
      • Images
        • ManageBlock
      • Members
      • Modules
        • ManageBlock
      • Nodes
        • ManageBlock
        • Module
      • Pages
        • BreadcrumbElement
        • LanguagesElement
        • ManageBlock
        • NavigationBranchElement
        • NavigationElement
        • Page
        • PageController
      • Registry
      • Search
      • Seo
      • Sites
        • ManageBlock
      • Taxonomy
        • Terms
          • ManageBlock
        • Vocabulary
          • ManageBlock
      • Users
        • ManageBlock
        • NonceLogin
        • Roles
      • Views
        • ActiveRecordProvider
        • Collection
        • View
    • Operation
      • ActiveRecord
      • Constructor
      • Module
      • Widget
    • Rendering
  • None
  • Patron
  • PHP

Classes

  • FormattedString
  • Helpers
  • Locale
  • NumberFormatter
  • Translator

Functions

  • date_period
  • format_currency
  • format_date
  • format_datetime
  • format_number
  • format_size
  • format_time
  • get_cldr
  • get_language
  • get_locale
  • set_locale
  • t

Class Locale

A locale refers to a set of user preferences that tend to be shared across significant swaths of the world. Traditionally, the data associated with it provides support for formatting and parsing of dates, times, numbers, and currencies; for measurement units, for sort-order (collation), plus translated names for time zones, languages, countries, and scripts. The data can also include support for text boundaries (character, word, line, and sentence), text transformations (including transliterations), and other services.

ICanBoogie\CLDR\Locale implements ArrayAccess
Extended by ICanBoogie\I18n\Locale
Namespace: ICanBoogie\I18n
Located at vendor/icanboogie/i18n/lib/locale.php

Methods summary

public static Locale.
# from( string $id )

Returns the locale for the specified id.

Returns the locale for the specified id.

Parameters

$id
string
$id The locale id.

Returns

Locale.
public
# __construct( ICanBoogie\CLDR\Repository $repository, string $id )

Initializes the ICanBoogie\I18n\Locale::$language and ICanBoogie\I18n\Locale::$territory properties.

Initializes the ICanBoogie\I18n\Locale::$language and ICanBoogie\I18n\Locale::$territory properties.

Parameters

$repository
string
$id Locale identifier. The underscore character "_" is replace with the hypen-minus character "-" as advised by the BCP 47.
$id
string
$identity Locale identifier.

Overrides

ICanBoogie\CLDR\Locale::__construct
public
# __get( mixed $property )

Overrides

ICanBoogie\CLDR\Locale::__get
public
# __call( mixed $method, mixed $arguments )
public string
# __toString( )

Returns the locale identifier.

Returns the locale identifier.

Returns

string
protected array
# get_calendar( )

Returns the data of the default calendar for the locale.

Returns the data of the default calendar for the locale.

Returns

array

Overrides

ICanBoogie\CLDR\Locale::get_calendar
protected ICanBoogie\I18n\NumberFormatter
# get_number_formatter( )

Returns the number formatter for the locale.

Returns the number formatter for the locale.

Returns

ICanBoogie\I18n\NumberFormatter
protected ICanBoogie\I18n\Translator
# get_translator( )

Returns the string translator for the locale.

Returns the string translator for the locale.

Returns

ICanBoogie\I18n\Translator

Methods inherited from ICanBoogie\CLDR\Locale

get_calendars(), get_identity(), get_repository(), offsetExists(), offsetGet(), offsetSet(), offsetUnset()

Magic methods summary

Properties summary

protected string $id
#

Language identifier.

Language identifier.

protected string $language
#

Language of the locale.

Language of the locale.

protected string $territory
#

Territory code for this locale.

Territory code for this locale.

Properties inherited from ICanBoogie\CLDR\Locale

$identity, $repository, $sections

Magic properties

public read-only string $id
#

Locale id

Locale id

public read-only string $language
#

Language of the locale.

Language of the locale.

public read-only string $territory
#

Territory of the locale.

Territory of the locale.

public read-only array $calendar
#

The data of the default calendar for the locale.

The data of the default calendar for the locale.

public read-only Conventions $conventions
#

The UNICODE conventions for the locale.

The UNICODE conventions for the locale.

public read-only DateFormatter $date_formatter
#

The data formatter for the locale.

The data formatter for the locale.

public read-only ICanBoogie\I18n\NumberFormatter $number_formatter
#

The number formatter for the locale.

The number formatter for the locale.

public read-only ICanBoogie\I18n\Translator $translator
#

The translator for the locale.

The translator for the locale.

Magic properties inherited from ICanBoogie\CLDR\Locale

$calendars, $identity, $repository

Autodoc API documentation generated by ApiGen 2.8.0