\JResponse
JResponse Class.
This class serves to provide the Joomla Platform with a common interface to access
response variables. This includes header and body.
Synopsis
class JResponse
{
- // methods
- public static boolean allowCache()
- public static void setHeader()
- public static array getHeaders()
- public static void clearHeaders()
- public static void sendHeaders()
- public static void setBody()
- public static void prependBody()
- public static void appendBody()
- public static string getBody()
- public static string toString()
- protected static string compress()
- protected static boolean clientEncoding()
Members
protected
- $body — array
- $cachable — boolean
- $headers — array
Methods
protected
- clientEncoding() — Check, whether client supports compressed data
- compress() — Compress the data
public
- allowCache() — Set/get cachable state for the response.
- appendBody() — Append content to the body content
- clearHeaders() — Clear headers.
- getBody() — Return the body content
- getHeaders() — Return array of headers.
- prependBody() — Prepend content to the body content
- sendHeaders() — Send all headers.
- setBody() — Set body content.
- setHeader() — Set a header.
- toString() — Sends all headers prior to returning the string