diff options
Diffstat (limited to 'includes/WebResponse.php')
-rw-r--r-- | includes/WebResponse.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/includes/WebResponse.php b/includes/WebResponse.php index e159152e..92343195 100644 --- a/includes/WebResponse.php +++ b/includes/WebResponse.php @@ -1,18 +1,20 @@ <?php - -/* - * Allow programs to request this object from WebRequest::response() and handle all outputting (or lack of outputting) via it. +/** + * Allow programs to request this object from WebRequest::response() + * and handle all outputting (or lack of outputting) via it. */ - class WebResponse { + + /** Output a HTTP header */ function header($string, $replace=true) { header($string,$replace); } - + + /** Set the browser cookie */ function setcookie($name, $value, $expire) { global $wgCookiePath, $wgCookieDomain, $wgCookieSecure; setcookie($name,$value,$expire, $wgCookiePath, $wgCookieDomain, $wgCookieSecure); } } -?>
\ No newline at end of file +?> |