Private Method Details |
Date |
private string Date( int $time )
|
|
Format a date according to RFC-XXXX (can't remember the HTTP
RFC number off-hand anymore, shame on me). This functionhonors the "y2k_compliance" php.ini directive.
|
Parameter |
|
|
Returns |
string , or false for an invalid timestamp. |
Author(s) |
Stig Bakken <ssb@fast.no> |
|
negotiateLanguage |
private void negotiateLanguage( array &$supported, string $default )
|
|
Negotiate language with the user's browser through the
Accept-Language HTTP header or the user's host address.Language codes are generally in the form "ll" for a languagespoken in only one country, or "ll_CC" for a language spoken ina particular country. For example, U.S. English is "en_US",while British English is "en_UK". Portugese as spoken inPortugal is "pt_PT", while Brazilian Portugese is "pt_BR".Two-letter country codes can be found in the ISO 3166 standard.Quantities in the Accept-Language: header are supported, forexample:Accept-Language: en_UK;q=0.7, en_US;q=0.6, no;q=1.0, dk;q=0.8
|
Parameter |
|
array |
&$supported |
|
|
by language
codes (country codes) supported by the application. Values
must evaluate to true. |
|
|
string |
$default |
|
|
Warning: documentation is missing. |
|
Returns |
void |
Author(s) |
Stig Bakken <ssb@fast.no> |
|