\Quark\UtilsLocale

Locale class.

Summary

Methods
Properties
Constants
getPreferedBrowserLocale()
getAvailableLocales()
getCount()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getPreferedBrowserLocale()

getPreferedBrowserLocale(boolean  $getSortedList = false, boolean  $acceptedLanguages = '') : string|array

Get prefered browser locale(s).

Parameters

boolean $getSortedList

True to sort the list, false otherwise.

boolean $acceptedLanguages

Force accept languages.

Returns

string|array —

Prefered browser locale(s).

getAvailableLocales()

getAvailableLocales() : array

Get available locales.

Returns

array —

Available locales.

getCount()

getCount() : integer

Get locale count.

Returns

integer —

Locale count.