HtmlView
Extends AbstractViewJoomla Framework HTML View Class
| since |
2.0.0 |
|---|---|
| package |
Joomla Framework |
Methods
__construct
Method to instantiate the view.
__construct(\Joomla\Renderer\RendererInterface renderer) :
__toString
Magic toString method that is a proxy for the render method.
__toString() :
| since |
2.0.0 |
|---|
Response
string
addData
Adds an object to the data array
addData( key, value) :
| since |
2.0.0 |
|---|
Arguments
- key
stringThe array key- value
mixedThe data value to add
Response
$this
clearData
Resets the internal data array
clearData() :
| since |
2.0.0 |
|---|
Response
$this
getData
Retrieves the data array
getData() : mixed||string|int
| since |
2.0.0 |
|---|
Response
array<string|int, mixed>
getLayout
Method to get the view layout.
getLayout() :
| since |
2.0.0 |
|---|
Response
stringThe layout name.
getRenderer
Retrieves the renderer object
getRenderer() : \Joomla\Renderer\RendererInterface
removeData
Removes an object to the data array
removeData( key) :
| since |
2.0.0 |
|---|
Arguments
- key
stringThe array key to remove
Response
$this
render
Method to render the view.
render() :
| since |
2.0.0 |
|---|
Response
stringThe rendered view.
setData
Sets additional data to the data array
setData(mixed||string|int data) :
| since |
2.0.0 |
|---|
Arguments
- data
array<string|int, mixed>Data to merge into the existing data array
Response
$this
setLayout
Method to set the view layout.
setLayout( layout) :
| since |
2.0.0 |
|---|
Arguments
- layout
stringThe layout name.
Response
$this
setRenderer
Sets the renderer object
setRenderer(\Joomla\Renderer\RendererInterface renderer) :
Properties
layout
The view layout.
| since |
2.0.0 |
|---|
Type(s)
string