ComponentRenderer
Extends DocumentRendererHTML document renderer for the component output
since |
3.5 |
---|---|
package |
Joomla CMS |
Methods
__construct
Class constructor
__construct(\Joomla\CMS\Document\Document doc) : mixed
inherited
since |
1.7.0 |
---|
Arguments
- doc
\Joomla\CMS\Document\Document
A reference to the Document object that instantiated the renderer
Response
mixed
_relToAbs
Convert links in a text from relative to absolute
_relToAbs(string text) : string
inherited
since |
1.7.0 |
---|
Arguments
- text
string
The text processed
Response
string
Text with converted links
getContentType
Return the content type of the renderer
getContentType() : string
inherited
since |
1.7.0 |
---|
Response
string
The contentType
render
Renders a component script and returns the results as a string
render(string component = null, array params = [], string content = null) : string
since |
3.5 |
---|
Arguments
- component
string
The name of the component to render- params
array
Associative array of values- content
string
Content script
Response
string
The output of the script
Properties
_doc
Reference to the Document object that instantiated the renderer
inherited
since |
1.7.0 |
---|
Type(s)
\Joomla\CMS\Document\Document
_mime
Renderer mime type
inherited
since |
1.7.0 |
---|
Type(s)
string