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

Language class to ensure only valid languages are used. More...

Public Member Functions

 __toString ()
 

Static Public Member Functions

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

Detailed Description

Language class to ensure only valid languages are used.

Since
1.11

Definition at line 13 of file Locale.php.

Member Function Documentation

Elgg\I18n\Locale::__toString ( )

Definition at line 26 of file Locale.php.

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

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

Parameters
string$localeLanguage code
Returns
Locale
Exceptions
InvalidLocaleException

Definition at line 39 of file Locale.php.


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