WebResponse Class Reference
[HTTP]

Allow programs to request this object from WebRequest::response() and handle all outputting (or lack of outputting) via it. More...

List of all members.

Public Member Functions

 header ($string, $replace=true)
 Output a HTTP header, wrapper for PHP's header().
 setcookie ($name, $value, $expire=0)
 Set the browser cookie.


Detailed Description

Allow programs to request this object from WebRequest::response() and handle all outputting (or lack of outputting) via it.

Definition at line 7 of file WebResponse.php.


Member Function Documentation

WebResponse::header ( string,
replace = true 
)

Output a HTTP header, wrapper for PHP's header().

Parameters:
$string String: header to output
$replace Bool: replace current similar header

Definition at line 15 of file WebResponse.php.

WebResponse::setcookie ( name,
value,
expire = 0 
)

Set the browser cookie.

Parameters:
$name String: name of cookie
$value String: value to give cookie
$expire Int: number of seconds til cookie expires

Definition at line 24 of file WebResponse.php.

References $name, $wgCookieDomain, $wgCookieExpiration, $wgCookieHttpOnly, $wgCookiePath, $wgCookiePrefix, $wgCookieSecure, wfDebugLog(), and wfHttpOnlySafe().


The documentation for this class was generated from the following file:

Generated on Sat Sep 5 02:08:50 2009 for MediaWiki by  doxygen 1.5.9