API16

JDocumentRendererModules/render: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: ===Description=== Renders multiple modules script and returns the results as a string <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>[[Description:JDocumentRender...
 
m preparing for archive only
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
Renders multiple modules script and returns the results as a string
Renders multiple modules script and returns the results as a string


<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JDocumentRendererModules/render|Edit Descripton]]<nowiki>]</nowiki>
</span>


{{Description:JDocumentRendererModules/render}}
 
<! removed transcluded page call, red link never existed >


===Syntax===
===Syntax===
Line 52: Line 50:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JDocumentRendererModules/render|Edit See Also]]<nowiki>]</nowiki>
<! removed transcluded page call, red link never existed >
</span>
{{SeeAlso:JDocumentRendererModules/render}}


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=render
  category=render
  category=JDocumentRendererModules
  category=JDocumentRendererModules
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>
[[Category:Archived pages API16]]

Latest revision as of 01:33, 25 March 2017

Description

Renders multiple modules script and returns the results as a string


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

Syntax

render($position, $params=array(), $content=null)
Parameter Name Default Value Description
$position $name The position of the modules to render
$params array() $params Associative array of values
$content null

Returns

string The output of the script

Defined in

libraries/joomla/document/html/renderer/modules.php

Importing

jimport( 'joomla.document.html.renderer.modules' );

Source Body

public function render($position, $params = array(), $content = null)
{
        $renderer       = &$this->_doc->loadRenderer('module');
        $buffer         = '';

        foreach (JModuleHelper::getModules($position) as $mod) {
                $buffer .= $renderer->render($mod, $params, $content);
        }
        return $buffer;
}


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

Examples

Code Examples