FauxResponse Class Reference

Inherits WebResponse.

List of all members.

Public Member Functions

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

Private Attributes

 $headers
 $cookies


Detailed Description

Definition at line 63 of file WebResponse.php.


Member Function Documentation

FauxResponse::getcookie ( name  ) 

Definition at line 83 of file WebResponse.php.

References $name.

FauxResponse::getheader ( key  ) 

Definition at line 75 of file WebResponse.php.

FauxResponse::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

Reimplemented from WebResponse.

Definition at line 67 of file WebResponse.php.

FauxResponse::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

Reimplemented from WebResponse.

Definition at line 79 of file WebResponse.php.

References $name.


Member Data Documentation

FauxResponse::$cookies [private]

Definition at line 65 of file WebResponse.php.

FauxResponse::$headers [private]

Definition at line 64 of file WebResponse.php.


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

Generated on Sat Apr 30 22:57:37 2011 for MediaWiki by  doxygen 1.5.9