Back to Joomla project (class list)

Class JsonView - list of methods

Base class for a Joomla Json View
Class holding methods for displaying presentation data.

Extends

Direct known subclasses

Package: Joomla\CMS\MVC\View
Copyright: (C) 2019 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/MVC/View/JsonView.php
Project: Joomla

Method Summary

public
(mixed $config = array())

Constructor
Parameters
  • array $config A named configuration array for object construction. name: the name (optional) of the view (defaults to the view class name suffix). charset: the character set to use for display escape: the name (optional) of the function to use for escaping strings base_path: the parent path (optional) of the views directory (defaults to the component folder) template_plath: the path (optional) of the layout directory (defaults to base_path + /views/ + view name helper_path: the path (optional) of the helper files (defaults to base_path + /helpers/) layout: the layout (optional) to use to display the view
Since
  • 4.0.0
Show source code of this method: __construct Source Code

public void
(mixed $tpl = null)

Execute and display a template script.
Parameters
  • string $tpl The name of the template file to parse; automatically searches through the template paths.
Returns
  • void
Since
  • 4.0.0
Show source code of this method: display Source Code

Properties Summary

protected string
$_basePath
The base path of the view
Since
  • 4.0.0
protected string
$_charset
Charset to use in escaping mechanisms; defaults to urf8 (UTF-8)
Since
  • 4.0.0
protected array
$_output
The output of the view.
Since
  • 4.0.0

Tags Summary

Since
4.0.0