Since: 4.0.0

class MetasRenderer extends DocumentRenderer

JDocument metas renderer

Properties

protected Document Since: 1.7.0
$_doc

Reference to the Document object that instantiated the renderer

from  DocumentRenderer
protected string Since: 1.7.0
$_mime

Renderer mime type

from  DocumentRenderer

Methods

__construct(Document $doc)

Class constructor

string
getContentType()

Return the content type of the renderer

string
_relToAbs(string $text)

Convert links in a text from relative to absolute

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

Renders the document metas and returns the results as a string

Details

__construct(Document $doc)

Since: 1.7.0

Class constructor

Parameters

Document $doc

A reference to the Document object that instantiated the renderer

string getContentType()

Since: 1.7.0

Return the content type of the renderer

Return Value

string

The contentType

protected string _relToAbs(string $text)

Since: 1.7.0

Convert links in a text from relative to absolute

Parameters

string $text

The text processed

Return Value

string

Text with converted links

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

Since: 4.0.0

Renders the document metas 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