Support Joomla!

references:joomla.framework:document:jdocumentrenderer-render

Table of Contents

render

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Document Class JDocumentRenderer Method render Reference render() Never Work in Progress

Renders a script and returns the results as a string. This is an abstract method and must be implemented in the child class.

Syntax

string render ( $name, $params, $content, $array )

$name string is a string containing the name of the element to render. This parameter is not used in the abstract method.
$params array is an associative array of parameters. These are not used in the abstract method.
$content string is a string used to override the output of the renderer. This parameter is not used in the abstract method.
$array array is an array that may be implemented in child methods.

Examples

Example

$document =& JFactory::getDocument();

jimport( 'joomla.document.renderer' );
jimport( 'joomla.document.html.renderer.head' );
$renderer = new JDocumentRendererHead( $document );
//echo $renderer->getContentType();
echo $renderer->render();

might produce:

Result

<title>Joomla! 1.5 Testing - Administration</title>
  <meta name="description" content="Joomla! - the dynamic portal engine and content management system" />
  <meta name="generator" content="Joomla! 1.5 - Open Source Content Management" />
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta name="robots" content="index, follow" />

  <meta name="keywords" content="joomla, Joomla" />
  <script type="text/javascript" src="../includes/js/mootools-uncompressed.js"></script>
  <script type="text/javascript" src="../includes/js/joomla.javascript.js"></script>

Discussion

Full name:
E-Mail:
 
references/joomla.framework/document/jdocumentrenderer-render.txt (739 views) · Last modified: 2007/08/15 14:58