PHP Class Prado\I18N\core\HTTPNegotiator

Get the language and charset information from the client browser.
Afficher le fichier Open project: pradosoft/prado

Protected Properties

Свойство Type Description
$charsets array A list of charsets accepted by the browser
$languages array A list of languages accepted by the browser.

Méthodes publiques

Méthode 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 méthode

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

getLanguages() public méthode

Get a list of languages acceptable by the client browser
public getLanguages ( ) : array
Résultat 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
Résultat array

$languages protected_oe property

A list of languages accepted by the browser.
protected array $languages
Résultat array