Elgg  Version 2.3
Public Member Functions | Static Public Member Functions | List of all members
Elgg\I18n\Locale Class Reference

WARNING: API IN FLUX. More...

Public Member Functions

 __toString ()
 

Static Public Member Functions

static parse ($locale)
 Create a language, asserting that the language code is valid. More...
 

Detailed Description

WARNING: API IN FLUX.

DO NOT USE DIRECTLY.

Language class to ensure only valid languages are used.

Since
1.11

private

Definition at line 13 of file Locale.php.

Member Function Documentation

Elgg\I18n\Locale::__toString ( )

Definition at line 28 of file Locale.php.

static Elgg\I18n\Locale::parse (   $locale)
static

Create a language, asserting that the language code is valid.

Parameters
string$localeLanguage code
Returns
Locale
Exceptions
InvalidLocaleException

Definition at line 41 of file Locale.php.


The documentation for this class was generated from the following file: