ICanBoogie/bind-cldr v0.2.0
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • Binding
      • CLDR

Classes

  • Hooks

Class Hooks

Namespace: ICanBoogie\Binding\CLDR
Located at Hooks.php

Methods summary

public static ICanBoogie\CLDR\ProviderInterface
# get_cldr_provider( )

Returns a provider chain with the following providers: ICanBoogie\CLDR\WebProvider, ICanBoogie\CLDR\FileProvider, and ICanBoogie\CLDR\RunTimeProvider. The ICanBoogie\CLDR\FileProvider is created with REPOSITORY/cldr as cache directory.

Returns a provider chain with the following providers: ICanBoogie\CLDR\WebProvider, ICanBoogie\CLDR\FileProvider, and ICanBoogie\CLDR\RunTimeProvider. The ICanBoogie\CLDR\FileProvider is created with REPOSITORY/cldr as cache directory.

Returns

ICanBoogie\CLDR\ProviderInterface
public static ICanBoogie\CLDR\Repository
# get_cldr( ICanBoogie\Core $app )

Returns a ICanBoogie\CLDR\Repository instance created with $app->cldr_provider.

Returns a ICanBoogie\CLDR\Repository instance created with $app->cldr_provider.

Parameters

$app

Returns

ICanBoogie\CLDR\Repository
public static ICanBoogie\CLDR\Locale
# get_locale( ICanBoogie\Core $app )

Returns the locale used by the application.

Returns the locale used by the application.

Parameters

$app

Returns

ICanBoogie\CLDR\Locale
public static
# set_locale( ICanBoogie\Core $app, ICanBoogie\CLDR\Locale|string $locale )

Sets the locale used by the application.

Sets the locale used by the application.

Parameters

$app
$locale
ICanBoogie/bind-cldr v0.2.0 API documentation generated by ApiGen