check that $wgArticle is an instance of the Article class in Skin::pageStats() per...
[lhc/web/wiklou.git] / includes / WebResponse.php
index b667e9f..09d3738 100644 (file)
@@ -2,16 +2,26 @@
 /**
  * Allow programs to request this object from WebRequest::response()
  * and handle all outputting (or lack of outputting) via it.
+ * @ingroup HTTP
  */
 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 $replace Bool: 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 $name String: name of cookie
+        * @param $value String: value to give cookie
+        * @param $expire Int: number of seconds til cookie expires
+        */
+       public function setcookie( $name, $value, $expire = 0 ) {
                global $wgCookiePath, $wgCookiePrefix, $wgCookieDomain;
                global $wgCookieSecure,$wgCookieExpiration, $wgCookieHttpOnly;
                if ( $expire == 0 ) {