AbstractHtmlView
Extends \Joomla\View\AbstractViewJoomla Framework HTML View Class
since |
1.0 |
---|---|
deprecated |
2.0 Will become BaseHtmlView in 2.0 |
Methods
__construct
Method to instantiate the view.
__construct(\Joomla\Model\ModelInterface $model)
__toString
Magic toString method that is a proxy for the render method.
__toString() : string
since |
1.0 |
---|
Response
string
escape
Method to escape output.
escape(string $output) : string
see | \Joomla\View\ViewInterface::escape() |
---|---|
since |
1.0 |
deprecated |
2.0 Interface method is deprecated without replacement. |
Arguments
- $output
string
The output to escape.
Response
string
The escaped output.
getLayout
Method to get the view layout.
getLayout() : string
since |
1.0 |
---|
Response
string
The layout name.
getPath
Method to get the layout path.
getPath(string $layout, string $ext = 'php') : mixed
since |
1.0 |
---|---|
deprecated |
2.0 In 2.0, a RendererInterface object will be required which will manage paths. |
Arguments
- $layout
string
The base name of the layout file (excluding extension).- $ext
string
The extension of the layout file (default: "php").
Response
mixed
The layout file name if found, false otherwise.
getPaths
Method to get the view paths.
getPaths() : \SplPriorityQueue
since |
1.0 |
---|---|
deprecated |
2.0 In 2.0, a RendererInterface object will be required which will manage paths. |
Response
\SplPriorityQueue
The paths queue.
loadPaths
Method to load the paths queue.
loadPaths() : \SplPriorityQueue
since |
1.0 |
---|---|
deprecated |
2.0 In 2.0, a RendererInterface object will be required which will manage paths. |
Response
\SplPriorityQueue
The paths queue.
render
Method to render the view.
render() : string
since |
1.0 |
---|---|
throws |
|
Response
string
The rendered view.
setLayout
Method to set the view layout.
setLayout(string $layout) : \Joomla\View\AbstractHtmlView
since |
1.0 |
---|
Arguments
- $layout
string
The layout name.
Response
\Joomla\View\AbstractHtmlView
Method supports chaining.
setPaths
Method to set the view paths.
setPaths(\SplPriorityQueue $paths) : \Joomla\View\AbstractHtmlView
since |
1.0 |
---|---|
deprecated |
2.0 In 2.0, a RendererInterface object will be required which will manage paths. |
Arguments
- $paths
\SplPriorityQueue
The paths queue.
Response
\Joomla\View\AbstractHtmlView
Method supports chaining.
Properties
layout
The view layout.
since |
1.0 |
---|
Type(s)
string
paths
The paths queue.
since |
1.0 |
---|---|
deprecated |
2.0 In 2.0, a RendererInterface object will be required which will manage paths. |
Type(s)
\SplPriorityQueue