Elgg  Version 4.x
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 ($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 30 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 43 of file Locale.php.


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