base class for response object A response object is responsible to generate a content in a specific format.
Located in /core/jResponse.class.php (line 21)
Class | Description |
---|---|
jResponseJson | Json response |
jResponseZip | generate a zip content and send it to the browser |
jResponseText | plain Text response |
jResponseCmdline | Command line response |
jResponseXMLFeed | Responses for Syndication should inherits from jResponseXMLFeed |
jResponseRedirectUrl | Response To redirect to an URL |
jResponseCss | Send CSS content |
jResponseBasicHtml | Basic HTML response. the HTML content should be provided by a simple php file. |
jResponseRedirect | Response To redirect to an action |
jResponseXmlRpc | xmlrpc response |
jResponseHtmlFragment | Send Html part |
jResponseBinary | Response use to send a binary file to the browser |
jResponseSitemap | Sitemap 0.9 response |
jResponseXml | XML response generator |
jResponseJsonRpc | Response for jsonrpc protocol |
constructor
add an http header to the response.
will be send during the output of the response
return the format type name (eg the family type name)
Use the HTPP headers Last-Modified to see if the ressource in client cache is fresh
Send the response in the correct format. If errors or exceptions appears during this method, outputErrors will be called. So the the content should be generated using the output buffer if errors can be appeared during this generation. Be care of http headers.
Send a response with a generic error message.
send http headers
Set an expires header to the page/ressource.
set the http status code for the http header
Set a life time for the page/ressource.
Normalize a date into GMT format
Documentation generated on Wed, 04 Jan 2017 22:56:04 +0100 by phpDocumentor 1.4.3