From 9dc6b435cf0958c636099fb8df8ffee054af70fc Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Sun, 24 Aug 2008 03:06:03 +0000 Subject: [PATCH] Clarified visibility + docs --- includes/WebResponse.php | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/includes/WebResponse.php b/includes/WebResponse.php index b667e9ff02..e3a6a1e05f 100644 --- a/includes/WebResponse.php +++ b/includes/WebResponse.php @@ -5,13 +5,22 @@ */ class WebResponse { - /** Output a HTTP header */ - function header($string, $replace=true) { + /** + * Output a HTTP header, wrapper for PHP's + * header() + * @param string $string Header to output + * @param bool $replace Replace current similar header + */ + public function header($string, $replace=true) { header($string,$replace); } - /** Set the browser cookie */ - function setcookie( $name, $value, $expire = 0 ) { + /** Set the browser cookie + * @param string $name Name of cookie + * @param string $value Value to give cookie + * @param int $expire Number of seconds til cookie expires + */ + public function setcookie( $name, $value, $expire = 0 ) { global $wgCookiePath, $wgCookiePrefix, $wgCookieDomain; global $wgCookieSecure,$wgCookieExpiration, $wgCookieHttpOnly; if ( $expire == 0 ) { -- 2.20.1