Simple Web Presenter
An extremely basic CMS
 All Classes Files Functions Variables Pages
Static Public Member Functions | List of all members
Language Class Reference

Static Public Member Functions

static accepted ()
 
static prefer ($default)
 

Detailed Description

Functionality for determining language use

Member Function Documentation

static Language::accepted ( )
static

Extracts the accepted languages from the GET query, sorted by preference(q-value).

Returns
associative array of language codes with q value
static Language::prefer (   $default)
static

From the list of desired languages, pick the best which we can serve.

Parameters
$defaultwhat to choose if no match could be found.

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