diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2007-09-14 13:18:58 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2007-09-14 13:18:58 +0200 |
commit | 8f416baead93a48e5799e44b8bd2e2c4859f4e04 (patch) | |
tree | cd47ac55eb80a39e3225e8b4f3161b88ea16c2cf /includes/AjaxResponse.php | |
parent | d7d08bd1a17618c7d77a6b9b2989e9f7293d6ed6 (diff) |
auf Version 1.11 aktualisiert; Login-Bug behoben
Diffstat (limited to 'includes/AjaxResponse.php')
-rw-r--r-- | includes/AjaxResponse.php | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/includes/AjaxResponse.php b/includes/AjaxResponse.php index cb4af1b5..8fa08539 100644 --- a/includes/AjaxResponse.php +++ b/includes/AjaxResponse.php @@ -8,14 +8,27 @@ if( !defined( 'MEDIAWIKI' ) ) { * @addtogroup Ajax */ class AjaxResponse { - var $mCacheDuration; - var $mVary; - var $mDisabled; - var $mText; - var $mResponseCode; - var $mLastModified; - var $mContentType; + /** Number of seconds to get the response cached by a proxy */ + private $mCacheDuration; + + /** HTTP header Content-Type */ + private $mContentType; + + /** @todo document */ + private $mDisabled; + + /** Date for the HTTP header Last-modified */ + private $mLastModified; + + /** HTTP response code */ + private $mResponseCode; + + /** HTTP Vary header */ + private $mVary; + + /** Content of our HTTP response */ + private $mText; function __construct( $text = NULL ) { $this->mCacheDuration = NULL; @@ -52,18 +65,21 @@ class AjaxResponse { $this->mDisabled = true; } + /** Add content to the response */ function addText( $text ) { if ( ! $this->mDisabled && $text ) { $this->mText .= $text; } } + /** Output text */ function printText() { if ( ! $this->mDisabled ) { print $this->mText; } } + /** Construct the header and output it */ function sendHeaders() { global $wgUseSquid, $wgUseESI; @@ -204,4 +220,4 @@ class AjaxResponse { return true; } } -?> + |