PHP Class Prado\I18N\core\HTTPNegotiator

Get the language and charset information from the client browser.
Datei anzeigen Open project: pradosoft/prado

Protected Properties

Property Type Description
$charsets array A list of charsets accepted by the browser
$languages array A list of languages accepted by the browser.

Public Methods

Method Description
getCharsets ( ) : array Get a list of charsets acceptable by the client browser.
getLanguages ( ) : array Get a list of languages acceptable by the client browser

Method Details

getCharsets() public method

Get a list of charsets acceptable by the client browser.
public getCharsets ( ) : array
return array list of charsets in preferable order.

getLanguages() public method

Get a list of languages acceptable by the client browser
public getLanguages ( ) : array
return array languages ordered in the user browser preferences.

Property Details

$charsets protected_oe property

A list of charsets accepted by the browser
protected array $charsets
return array

$languages protected_oe property

A list of languages accepted by the browser.
protected array $languages
return array