JResponse/1.5
From Joomla! Documentation
< JResponse(Difference between revisions)
(Bulk upload by Doxiki2) |
(Layout updates) |
||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
| + | =={{JVer|1.5}} JResponse== | ||
| + | ===Description=== | ||
| + | {{Description:JResponse}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[Description:JResponse|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JResponse|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
| + | !Visibility | ||
!Method name | !Method name | ||
!Description | !Description | ||
|- | |- | ||
| + | |public | ||
|[[JResponse::_clientEncoding/1.5|_clientEncoding]] | |[[JResponse::_clientEncoding/1.5|_clientEncoding]] | ||
|check, whether client supports compressed data | |check, whether client supports compressed data | ||
|- | |- | ||
| + | |public | ||
|[[JResponse::_compress/1.5|_compress]] | |[[JResponse::_compress/1.5|_compress]] | ||
|Compress the data. | |Compress the data. | ||
|- | |- | ||
| + | |public | ||
|[[JResponse::appendBody/1.5|appendBody]] | |[[JResponse::appendBody/1.5|appendBody]] | ||
|Append content to the body content. | |Append content to the body content. | ||
|- | |- | ||
| + | |public | ||
|[[JResponse::clearHeaders/1.5|clearHeaders]] | |[[JResponse::clearHeaders/1.5|clearHeaders]] | ||
|Clear headers. | |Clear headers. | ||
|- | |- | ||
| + | |public | ||
|[[JResponse::getBody/1.5|getBody]] | |[[JResponse::getBody/1.5|getBody]] | ||
|Return the body content. | |Return the body content. | ||
|- | |- | ||
| + | |public | ||
|[[JResponse::getHeaders/1.5|getHeaders]] | |[[JResponse::getHeaders/1.5|getHeaders]] | ||
|Return array of headers;. | |Return array of headers;. | ||
|- | |- | ||
| + | |public | ||
|[[JResponse::prependBody/1.5|prependBody]] | |[[JResponse::prependBody/1.5|prependBody]] | ||
|Prepend content to the body content. | |Prepend content to the body content. | ||
|- | |- | ||
| + | |public | ||
|[[JResponse::sendHeaders/1.5|sendHeaders]] | |[[JResponse::sendHeaders/1.5|sendHeaders]] | ||
|Send all headers. | |Send all headers. | ||
|- | |- | ||
| + | |public | ||
|[[JResponse::setBody/1.5|setBody]] | |[[JResponse::setBody/1.5|setBody]] | ||
|Set body content. | |Set body content. | ||
|- | |- | ||
| + | |public | ||
|[[JResponse::setHeader/1.5|setHeader]] | |[[JResponse::setHeader/1.5|setHeader]] | ||
|Set a header. | |Set a header. | ||
|- | |- | ||
| + | |public | ||
|[[JResponse::toString/1.5|toString]] | |[[JResponse::toString/1.5|toString]] | ||
|Sends all headers prior to returning the string. | |Sends all headers prior to returning the string. | ||
|- | |- | ||
| + | |public | ||
|[[JResponse::allowCache/1.5|allowCache]] | |[[JResponse::allowCache/1.5|allowCache]] | ||
|Set/get cachable state for the response. | |Set/get cachable state for the response. | ||
|- | |- | ||
|} | |} | ||
| + | * '''Defined in''' libraries/joomla/environment/response.php | ||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.environment.response' );</source> | <source lang="php">jimport( 'joomla.environment.response' );</source> | ||
===See also=== | ===See also=== | ||
| + | * {{JVer|1.5}} '''JResponse''' on [http://api.joomla.org/Joomla-Framework/Environment/JResponse.html api.joomla.org] | ||
| + | * {{JVer|1.5}} '''JResponse source code''' on [[jframework15:environment/response.php|JoomlaCode]] | ||
| + | * {{JVer|1.5}} Subpackage [[Subpackage Environment/1.5|Environment]] | ||
| + | * [[JResponse|Other versions of JResponse]] | ||
| + | {{SeeAlso:JResponse}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JResponse|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JResponse|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | + | ===User contributed notes=== | |
| − | + | ||
| − | + | ||
| − | === | + | |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 70: | Line 82: | ||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JResponse]]</noinclude> | <noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JResponse]]</noinclude> | ||
Revision as of 18:12, 25 April 2011
JResponse
Description
Description:JResponse [Edit Descripton]
Methods
| Visibility | Method name | Description |
|---|---|---|
| public | _clientEncoding | check, whether client supports compressed data |
| public | _compress | Compress the data. |
| public | appendBody | Append content to the body content. |
| public | clearHeaders | Clear headers. |
| public | getBody | Return the body content. |
| public | getHeaders | Return array of headers;. |
| public | prependBody | Prepend content to the body content. |
| public | sendHeaders | Send all headers. |
| public | setBody | Set body content. |
| public | setHeader | Set a header. |
| public | toString | Sends all headers prior to returning the string. |
| public | allowCache | Set/get cachable state for the response. |
- Defined in libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
See also
-
JResponse on api.joomla.org
-
JResponse source code on JoomlaCode
-
Subpackage Environment
- Other versions of JResponse
SeeAlso:JResponse [Edit See Also]
User contributed notes
<CodeExamplesForm />