db
Locale Class Reference

Public Member Functions

 __construct ($language, $country=NULL)
 
 getLanguage ()
 
 getCountry ()
 
 getVariant ()
 
 toLocaleTag ()
 

Static Public Member Functions

static forLocaleTag ($localeTag)
 

Protected Attributes

 $language
 
 $script = NULL
 
 $country = NULL
 
 $variant1 = NULL
 
 $variant2 = NULL
 
 $private1 = NULL
 
 $private2 = NULL
 

Detailed Description

trida reprzentujici dane Locale

pouziva stejny tvar jako http://php.net/manual/en/class.locale.php z php rozsireni intl

seznam vsech kodu lang http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry

Constructor & Destructor Documentation

◆ __construct()

__construct (   $language,
  $country = NULL 
)

Member Function Documentation

◆ forLocaleTag()

static forLocaleTag (   $localeTag)
static

prevede retezec definujici locale http://php.net/manual/en/class.locale.php na tridu Locale

Parameters
string$localeTag
Returns
Locale
Exceptions
Exception

◆ getCountry()

getCountry ( )

◆ getLanguage()

getLanguage ( )

◆ getVariant()

getVariant ( )

◆ toLocaleTag()

toLocaleTag ( )

Member Data Documentation

◆ $country

$country = NULL
protected

◆ $language

$language
protected

◆ $private1

$private1 = NULL
protected

◆ $private2

$private2 = NULL
protected

◆ $script

$script = NULL
protected

◆ $variant1

$variant1 = NULL
protected

◆ $variant2

$variant2 = NULL
protected

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