[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/summary/action/ -> summaryaction.class.php (sommaire)

(pas de description)

Poids: 150 lignes (5 kb)
Inclus ou requis:0 fois
Référencé: 6 fois
Nécessite: 0 fichiers

Définit 1 class

SummaryAction:: (4 méthodes):
  SummaryAction()
  _loadLocale()
  setCommonData()
  _matchHttpAcceptLanguages()


Classe: SummaryAction  - X-Ref

Base action that all summary actions should extend

SummaryAction( $actionInfo, $request )   X-Ref
Pas de description

_loadLocale()   X-Ref
Loads the current locale. It works so that it tries to fetch the parameter "lang" from the
request. If it's not available, then it will try to look for it in the session. If it is not
there either, it will try to guess the most prefered language according to what the User Agent
included in the HTTP_ACCEPT_LANGUAGE string sent with the request. If none matches available
languages we have to use the value of "default_locale" and display the default language.

return: Returns a reference to a Locale object

setCommonData( $copyFormValues = false )   X-Ref
Common things that should be performed by all SummaryAction classes


_matchHttpAcceptLanguages(&$httpAcceptLanguage)   X-Ref
Tries to match the prefered language out of the http_accept_language string
with one of the available languages.

param: httpAcceptLanguage the value of $_SERVER['HTTP_ACCEPT_LANGUAGE']
return: Returns returns prefered language or false if no language matched.



Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics