[ Index ] |
|
Code source de LifeType 1.2.4 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 150 lignes (5 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 6 fois |
Nécessite: | 0 fichiers |
SummaryAction:: (4 méthodes):
SummaryAction()
_loadLocale()
setCommonData()
_matchHttpAcceptLanguages()
Classe: SummaryAction - X-Ref
Base action that all summary actions should extendSummaryAction( $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 |
![]() |