API16

Difference between revisions of "JDocumentJSON/render"

From Joomla! Documentation

< API16:JDocumentJSON
(New page: ===Description=== Render the document. <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </sp...)
 
m (removing red link to edit, no existant pages)
Line 3: Line 3:
  
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JDocumentJSON/render|Edit Descripton]]<nowiki>]</nowiki>
+
<nowiki>[<! removed edit link to red link >]</nowiki>
 
</span>
 
</span>
  
{{Description:JDocumentJSON/render}}
+
<! removed transcluded page call, red link never existed >
  
 
===Syntax===
 
===Syntax===
Line 48: Line 48:
  
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JDocumentJSON/render|Edit See Also]]<nowiki>]</nowiki>
+
<nowiki>[<! removed edit link to red link >]</nowiki>
 
</span>
 
</span>
{{SeeAlso:JDocumentJSON/render}}
+
<! removed transcluded page call, red link never existed >
  
 
===Examples===
 
===Examples===
Line 63: Line 63:
 
  format= ,,,
 
  format= ,,,
 
</dpl>
 
</dpl>
 +
[[Category:Archived pages API16]]

Revision as of 22:07, 12 May 2013

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]

Render the document.

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax[edit]

render($cache=false, $params=array())
Parameter Name Default Value Description
$cache false $cache If true, cache the output
$params array() $params Associative array of attributes

Returns[edit]

The rendered data

Defined in[edit]

libraries/joomla/document/json/json.php

Importing[edit]

jimport( 'joomla.document.json.json' );

Source Body[edit]

public function render($cache = false, $params = array())
{
        JResponse::allowCache(false);
        JResponse::setHeader('Content-disposition', 'attachment; filename="'.$this->getName().'.json"', true);

        parent::render();

        return $this->getBuffer();
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples[edit]

<CodeExamplesForm />