Difference between revisions of "JCacheOutput/end"
From Joomla! Documentation
< API16:JCacheOutput
(New page: ===Description===
Stop the cache buffer and store the cached data
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<...) |
m (preparing for archive only) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
Stop the cache buffer and store the cached data | Stop the cache buffer and store the cached data | ||
− | |||
− | |||
− | |||
− | + | ||
+ | <! removed transcluded page call, red link never existed > | ||
===Syntax=== | ===Syntax=== | ||
Line 40: | Line 38: | ||
</source> | </source> | ||
− | + | ||
− | + | <! removed transcluded page call, red link never existed > | |
− | < | ||
− | |||
===Examples=== | ===Examples=== | ||
− | + | === Code Examples === | |
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=end | category=end | ||
category=JCacheOutput | category=JCacheOutput | ||
− | + | namespace=CodeExample | |
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
+ | [[Category:Archived pages API16]] |
Latest revision as of 20:22, 24 March 2017
The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
Description[edit]
Stop the cache buffer and store the cached data
<! removed transcluded page call, red link never existed >
Syntax[edit]
end()
Returns[edit]
boolean True if cache stored
Defined in[edit]
libraries/joomla/cache/handler/output.php
Importing[edit]
jimport( 'joomla.cache.handler.output' );
Source Body[edit]
function end()
{
// Get data from output buffer and echo it
$data = ob_get_contents();
ob_end_clean();
echo $data;
// Get id and group and reset them placeholders
$id = $this->_id;
$group = $this->_group;
$this->_id = null;
$this->_group = null;
// Get the storage handler and store the cached data
$this->store($data, $id, $group);
}
<! removed transcluded page call, red link never existed >
Examples[edit]
Code Examples[edit]