class JViewHtml extends JViewBase

Joomla Platform HTML View Class

Methods

__construct( JModel $model, SplPriorityQueue $paths = null)

Method to instantiate the view.

string
escape( string $output)

Method to escape output.

string
__toString()

Magic toString method that is a proxy for the render method.

string
getLayout()

Method to get the view layout.

mixed
getPath( string $layout)

Method to get the layout path.

getPaths()

Method to get the view paths.

string
render()

Method to render the view.

setLayout( string $layout)

Method to set the view layout.

setPaths( SplPriorityQueue $paths)

Method to set the view paths.

Details

__construct( JModel $model, SplPriorityQueue $paths = null)

Method to instantiate the view.

Parameters

JModel $model The model object.
SplPriorityQueue $paths The paths queue.

string escape( string $output)

Method to escape output.

Parameters

string $output The output to escape.

Return Value

string The escaped output.

See also

JView::escape()

string __toString()

Magic toString method that is a proxy for the render method.

Return Value

string

string getLayout()

Method to get the view layout.

Return Value

string The layout name.

mixed getPath( string $layout)

Method to get the layout path.

Parameters

string $layout The layout name.

Return Value

mixed The layout file name if found, false otherwise.

SplPriorityQueue getPaths()

Method to get the view paths.

Return Value

SplPriorityQueue The paths queue.

string render()

Method to render the view.

Return Value

string The rendered view.

Exceptions

RuntimeException

JViewHtml setLayout( string $layout)

Method to set the view layout.

Parameters

string $layout The layout name.

Return Value

JViewHtml Method supports chaining.

JViewHtml setPaths( SplPriorityQueue $paths)

Method to set the view paths.

Parameters

SplPriorityQueue $paths The paths queue.

Return Value

JViewHtml Method supports chaining.