Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: /home/cch/www/pear/HTTP.php
PEAR Repository -

HTTP

HTTP

 

private class HTTP

 

Private Method Summary

void

Date(int $time)

Format a date according to RFC-XXXX (can't remember the HTTP
void

negotiateLanguage(array &$supported, string $default)

Negotiate language with the user's browser through the

Private Method Details

Date

private void Date( int $time )

  Format a date according to RFC-XXXX (can't remember the HTTP
RFC number off-hand anymore, shame on me). This function
honors the "y2k_compliance" php.ini directive.

Parameter
int $time
UNIX timestamp
Returns void

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 language
spoken in only one country, or "ll_CC" for a language spoken in
a particular country. For example, U.S. English is "en_US",
while British English is "en_UK". Portugese as spoken in
Portugal 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, for
example:

Accept-Language: en_UK;q=0.7, en_US;q=0.6, no;q=1.0, dk;q=0.8

Parameter
array &$supported
indexed by language
codes (country codes) supported by the application. Values
must evaluate to true.
string $default
Returns void

Author(s) Stig Bakken <ssb@fast.no>


Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta