class HeadRenderer extends DocumentRenderer

HTML document renderer for the document <head> element

Methods

__construct( Document $doc)

Class constructor

string
render( string $head, array $params = array(), string $content = null)

Renders the document head and returns the results as a string

string
getContentType()

Return the content type of the renderer

string
fetchHead( JDocumentHtml $document)

Generates the head HTML and return the results as a string

Details

__construct( Document $doc)

Class constructor

Parameters

Document $doc A reference to the Document object that instantiated the renderer

string render( string $head, array $params = array(), string $content = null)

Renders the document head and returns the results as a string

Parameters

string $head (unused)
array $params Array of values
string $content Override the output of the renderer

Return Value

string The output of the script

string getContentType()

Return the content type of the renderer

Return Value

string The contentType

string fetchHead( JDocumentHtml $document)

Generates the head HTML and return the results as a string

Parameters

JDocumentHtml $document The document for which the head will be created

Return Value

string The head hTML