I18Nv2
[ class tree: I18Nv2 ] [ index: I18Nv2 ] [ all elements ]

Class: I18Nv2_Negotiator

Source Location: /I18Nv2-0.11.4/Negotiator.php

Class Overview


I18Nv2_Negotiator


Author(s):

Version:

  • $Revision: 1.11 $

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 37]
I18Nv2_Negotiator


[ Top ]


Class Variables

$I18NCountry =  null

[line 53]

I18Nv2_Country
  • Access: public

Type:   object


[ Top ]

$I18NLang =  null

[line 45]

I18Nv2_Language
  • Access: public

Type:   object


[ Top ]



Method Detail

I18Nv2_Negotiator (Constructor)   [line 122]

I18Nv2_Negotiator I18Nv2_Negotiator( [string $defaultLanguage = 'en'], [string $defaultEncoding = 'iso-8859-1'], [string $defaultCountry = ''])

Constructor

Find language code, country code, encoding code, and dialect or variant of Locale setting in HTTP request headers.

  • Access: public

Parameters:

string   $defaultLanguage     Default Language
string   $defaultEncoding     Default Encoding
string   $defaultCountry     Default Country

[ Top ]

getCharsetMatch   [line 235]

string getCharsetMatch( [array $encodings = null])

Find Encoding match
  • Access: public
  • Deprecated:

Parameters:

array   $encodings     

[ Top ]

getCountryMatch   [line 206]

array getCountryMatch( string $lang, [array $countries = null])

Find Country Match
  • Access: public

Parameters:

string   $lang     
array   $countries     

[ Top ]

getEncodingMatch   [line 251]

string getEncodingMatch( [array $encodings = null])

Find Encoding match
  • Access: public

Parameters:

array   $encodings     

[ Top ]

getLanguageMatch   [line 267]

string getLanguageMatch( [array $langs = null])

Find Language match
  • Access: public

Parameters:

array   $langs     

[ Top ]

getLocaleMatch   [line 284]

string getLocaleMatch( [array $langs = null], [array $countries = null])

Find locale match
  • Access: public

Parameters:

array   $langs     
array   $countries     

[ Top ]

getVariantInfo   [line 222]

string getVariantInfo( string $lang)

Return variant info for passed parameter.
  • Access: public

Parameters:

string   $lang     

[ Top ]

singleI18NCountry   [line 365]

object &singleI18NCountry( )

Create the Country helper object
  • Access: public

[ Top ]

singleI18NLanguage   [line 347]

object &singleI18NLanguage( )

Create the Language helper object
  • Access: public

[ Top ]


Documentation generated on Wed, 08 Mar 2006 08:48:04 -0500 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.