| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Document |
JDocumentRendererHead |
fetchHead |
fetchHead() |
Never | Work in Progress |
Generates the head HTML and return the results as a string.
Renders the following items:
The line end characters, tab characters and tag end characters are retrieved from the $document parameter.
string fetchHead ( &$document )
| &$document | JDocument | is a JDocument object containing the data to render. |
Example
$document =& JFactory::getDocument(); jimport( 'joomla.document.renderer' ); jimport( 'joomla.document.html.renderer.head' ); $renderer = new JDocumentRendererHead( $document ); echo $renderer->fetchHead( $document );
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>