API15

JResponse: Difference between revisions

From Joomla! Documentation

m clean up
m preparing for archive only
 
Line 1: Line 1:
{{subst:Description:JResponse}}
===Defined in===
===Defined in===
libraries/joomla/environment/response.php
libraries/joomla/environment/response.php
Line 44: Line 42:




{{subst:SeeAlso:JResponse}}
 


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=JResponse
  category=JResponse
  category=CodeExample
  namespace=CodeExample
  category=ClassExample
  category=ClassExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>

Latest revision as of 01:05, 25 March 2017

Defined in

libraries/joomla/environment/response.php

Methods

Method name Description
allowCache Set/get cachable state for the response
setHeader Set a header
getHeaders Return array of headers;
clearHeaders Clear headers
sendHeaders Send all headers
setBody Set body content
prependBody Prepend content to the body content
appendBody Append content to the body content
getBody Return the body content
toString Sends all headers prior to returning the string

Importing

jimport( 'joomla.environment.response' );



Examples

Code Examples