ICanBoogie
  • Documentation
  • API Reference
  • bind-cldr master
Namespaces
  • ICanBoogie
    • Binding
      • CLDR
Classes
  • Hooks
Traits
  • CoreBindings

Class Hooks

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

Methods summary

public static get_cldr_provider( void ) : ICanBoogie\CLDR\Provider

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

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

Returns

ICanBoogie\CLDR\Provider
public static get_cldr( ICanBoogie\Core $app ) : ICanBoogie\CLDR\Repository

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 get_locale( ICanBoogie\Core $app ) : ICanBoogie\CLDR\Locale

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
public static get_language( ICanBoogie\Core $app ) : string

Returns the language of the application.

Returns the language of the application.

Parameters

$app

Returns

string
bind-cldr master – Check on GitHub – API documentation generated by ApiGen