[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Response handler for Ajax requests. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
File Size: | 314 lines (8 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
AjaxResponse:: (12 methods):
__construct()
setCacheDuration()
setVary()
setResponseCode()
setContentType()
disable()
addText()
printText()
sendHeaders()
checkLastModified()
loadFromMemcached()
storeInMemcached()
Class: AjaxResponse - X-Ref
Handle responses for Ajax requests (send headers, print__construct( $text = null, Config $config = null ) X-Ref |
param: string|null $text param: Config|null $config |
setCacheDuration( $duration ) X-Ref |
Set the number of seconds to get the response cached by a proxy param: int $duration |
setVary( $vary ) X-Ref |
Set the HTTP Vary header param: string $vary |
setResponseCode( $code ) X-Ref |
Set the HTTP response code param: string $code |
setContentType( $type ) X-Ref |
Set the HTTP header Content-Type param: string $type |
disable() X-Ref |
Disable output. |
addText( $text ) X-Ref |
Add content to the response param: string $text |
printText() X-Ref |
Output text |
sendHeaders() X-Ref |
Construct the header and output it |
checkLastModified( $timestamp ) X-Ref |
checkLastModified tells the client to use the client-cached response if possible. If successful, the AjaxResponse is disabled so that any future call to AjaxResponse::printText() have no effect. param: string $timestamp return: bool Returns true if the response code was set to 304 Not Modified. |
loadFromMemcached( $mckey, $touched ) X-Ref |
param: string $mckey param: int $touched return: bool |
storeInMemcached( $mckey, $expiry = 86400 ) X-Ref |
param: string $mckey param: int $expiry return: bool |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |